# Holdings Table

> A fund holdings table with market value, price, YTD return and portfolio weight bars, sortable by any column, for ETF and wealth apps.

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/holdings-table
```

npm dependencies: clsx, lucide-react, motion, tailwind-merge

## Props

`<HoldingsTable />`

- `holdings?`: `Holding[]`
- `title?`: `string`
- `maxWeight?`: `number`
- `valueLabel?`: `string`
- `priceLabel?`: `string`
- `returnLabel?`: `string`
- `weightLabel?`: `string`

## Where it belongs

- Trading UI: Dark trading interface components for React and Tailwind: swap tickets, holdings tables, blotters, tapes and candlestick charts. (https://ssych.com/library/s/trading-ui)
- Dashboard: Dark dashboard components for React, Next.js and Tailwind: KPI rows, heatmaps, balance charts, gauges and the navigation around them. (https://ssych.com/library/s/dashboard)
- Tables: React table components built for real data density: holdings, blotters, trade journals, request logs and feeds, dark by default. (https://ssych.com/library/s/tables)
- Crypto: Crypto interface components for React and Tailwind: swap tickets, token balances, candlesticks, tapes and market heatmaps. (https://ssych.com/library/s/crypto)
- Trading tables: Trading table components for React and Tailwind: open positions with liquidation price, holdings, a trade journal, a fills blotter and live feeds. (https://ssych.com/library/s/trading-tables)

## Related

- Swap Ticket: https://ssych.com/library/swap-ticket.md
- Fills Blotter: https://ssych.com/library/fills-blotter.md
- Trade Tape: https://ssych.com/library/trade-tape.md
- Ticker Tape: https://ssych.com/library/ticker-tape.md
- Candlestick Chart: https://ssych.com/library/candlestick.md
- Balance Header: https://ssych.com/library/balance-header.md
- Trade Journal Table: https://ssych.com/library/trade-journal-table.md
- Price Scrubber: https://ssych.com/library/price-scrubber.md

## Links

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