Skip to content
TrademarkTrademark
Docs
Data

BreakdownList

Updated: November 30, 2026
View on GitHub

BreakdownList shows the parts of a whole as a ranked list: each row a name and an amount, with a bar behind it as long as its share. It reads as a list, not a chart. Every amount is written, so the bar is never the only cue. Use it for top pages, referrers, countries or spend by category, where the names matter as much as the sizes. Import it from @once-ui-system/core/data.

Scale

scale="max" (the default) makes the largest item a full bar, so the ranking reads at a glance. scale="total" makes each bar its share of the whole, which suits a breakdown that adds up to 100%, such as money by currency.

Rows

  • limit shows that many rows and folds the rest into one row named by otherLabel ("Other").
  • sort={false} keeps the order you give instead of largest first.
  • prefix(row) puts a favicon, flag or icon before the name.
  • href(row) makes a row a link, such as to the filtered view.
  • loading draws placeholder rows, and emptyState replaces "No data yet".

API reference

Type
Default
datarequired
One row per item.
readonly DataPoint[]—
dataKey
The row key of each amount. Default value.
SeriesKey<DataPoint>"value" as SeriesKey<T>
nameKey
The row key that names each item. Default label.
SeriesKey<DataPoint>"label" as SeriesKey<T>
title
ReactNode—
headings
Column headings over the names and the amounts.
readonly [ReactNode, ReactNode]—
valueFormat
numbercompactpercentNumberFormatOptions(value: number) => string
—
locale
string—
scale
max (default): the largest item is a full bar. total: each bar is its share of the whole.
maxtotal
max
showShare
Writes each item's share beside its amount.
booleanfalse
color
ColorValue—
sort
booleantrue
limit
Show this many rows and fold the rest into one.
number—
otherLabel
string—
prefix
(row: DataPoint) => ReactNode—
href
Makes a row a link.
(row: DataPoint) => string | undefined—
loading
booleanfalse
emptyState
ReactNodeNo data yet
…and every FlexProps propinherited—
Edit this page on GitHub