# Sectors Donut

> A sector allocation donut for ETF and fund pages that shows each sector weight and dims the rest while you hover one.

A React component for shadcn/ui and Tailwind CSS, from ssych ui (https://ssych.com). Free, MIT licensed, the source lands in your repo.

## Install

```bash
npx shadcn@latest add @ssych/sectors-donut
```

npm dependencies: clsx, motion, tailwind-merge

## Props

`<SectorsDonut />`

- `symbol?`: `string`
- `caption?`: `string`
- `sectors?`: `DonutSector[]`
- `colors?`: `string[]`

## Where it belongs

- Charts: SVG chart components for React and Tailwind: candlesticks, drawdowns, donuts, radars, heat calendars and KPI charts, with no charting dependency. (https://ssych.com/library/s/charts)

## Related

- Candlestick Chart: https://ssych.com/library/candlestick.md
- Equity & Drawdown: https://ssych.com/library/equity-drawdown.md
- SMA Chart: https://ssych.com/library/sma-chart.md
- Dotted Area Chart: https://ssych.com/library/dotted-area-chart.md
- Balance Chart: https://ssych.com/library/balance-chart.md
- Donut Chart: https://ssych.com/library/donut-chart.md
- Ratings Radar: https://ssych.com/library/ratings-radar.md
- Analyst Radar: https://ssych.com/library/analyst-radar.md

## Links

- Live preview and code: https://ssych.com/library/sectors-donut
- Source: https://github.com/savvasicevs/ssych-ui
- All components: https://ssych.com/llms-full.txt
