Components
BaseStatTiles
Label and value boxes, as tiles or a divided strip, with icons, links and progress.
Variants
Each tile has a label (with an optional small icon) and a value in the KPI figure style. trend adds a BaseTrendChip with the change, and hint a note below. With to, the whole tile is a link with a chevron; with progress, a bar with its percentage, primary and green once it reaches 100%.
Where to place it
The tiles have no background of their own and take the one of their container, so they go inside something with a surface: a BaseCard with variant="divided" (the stats strip of a profile or a detail page) or a BaseQuickView with tiles. Loose on the page they show the page background. For the KPI row at the top of a dashboard, use BaseKpiCard, which brings its card, trend and sparkline.
In tight spaces
Each column is at least as wide as its widest value (and never narrower than min-width), so a long amount never spills into the next tile. When the container cannot fit every column, the tiles switch to rows: the label on the left, the value on the right and horizontal dividers.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
itemsrequired | BaseStatTileItem[] | — | The tiles, each { label, value, hint?, valueClass?, icon?, iconColor?, to?, progress?, progressColor?, hintClass?, trend?, trendIntent? }. |
variant | "tiles" | "divided" | "tiles" | tiles (separate boxes) or divided (one strip, for inside a card). |
columns | number | "auto-fit" | "auto-fit" | A fixed number of columns, or auto-fit. |
min-width | number | 120 | Minimum width of a tile with auto-fit. |
compact | boolean | false | Smaller values and padding. |