Savva Sicevs

Sectors Donut

Component 68

About

A sector allocation donut for ETF and fund pages that shows each sector weight and dims the rest while you hover one. Part of ssych ui: https://ssych.com/library/sectors-donut

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sectors Donut to your project and fits it to your theme.

Code

How Sectors Donut is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useEffect } from "react"
import { SectorsDonut } from "@/components/ui/sectors-donut"

export default function DemoOne() {
  // open the preview in dark by default; the sandbox theme toggle still works
  useEffect(() => { document.documentElement.classList.add("dark") }, [])
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center p-8">
      <SectorsDonut />
    </div>
  )
}

Dependencies

More by Savva Sicevs

View all
  • Price Target Fan

    Price Target Fan

    198
  • Candle Chart

    Candle Chart

    179
  • Market Snapshot

    Market Snapshot

    125
  • Returns Calendar

    Returns Calendar

    97
  • Range Navigator

    Range Navigator

    94
  • SMA Chart

    SMA Chart

    93
  • Market Watchlist

    Market Watchlist

    93
  • macOS Dock

    macOS Dock

    37

Explore more

Part of ssych ui — browse the full library on 21st.dev.