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.
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.
When to use it
For position and allocation tables where weight is as important as value. The tick-comb bar makes relative weight scannable down the column, which right-aligned percentages alone do not.
Props · HoldingsTable
| Prop | Type | Default |
|---|---|---|
| holdings? | Holding[] | DEFAULT_HOLDINGS |
| title? | string | "Top 10 holdings" |
| maxWeight? | number | 10 |
| valueLabel? | string | "Market value" |
| priceLabel? | string | "Current price" |
| returnLabel? | string | "YTD returns" |
| weightLabel? | string | "Percentage of fund" |
Generated from the component source. Run npm run props:extract after changing a signature.
