# Bar list

Ranked values with proportional bars.

Import from `@a31labs/rax/bar-list`.

## Usage

```tsx
<BarList label="Top pages" items={[{ label: "/", value: 4210, href: "/" }]} showShare limit={5} />
```

## Rules

Props: `items` (`{ label, value, href, attrs }`), `format` (number to string, default `toLocaleString`), `showShare` (adds the share of the total), `limit` (shows the first N with a "Show all N" / "Show less" button with `aria-expanded`), `label` (accessible name). A `<ul>` of rows, each with an accent-soft bar behind it sized relative to the largest value, the label on the left truncated with an ellipsis, and the value right-aligned with tabular figures. Rows with `href` are links, underlined on hover with an inset focus ring. The no-dependency chart for "top N" breakdowns.

Page: https://rax.a31.at/components/bar-list
