Components

BaseStatTiles

Label and value boxes, as tiles or a divided strip, with icons, links and progress.

components/ui/BaseStatTiles.vue
View in the demo

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%.

Revenue
$12,480
Up+8.0%
vs. last month
Shipping
Free3 orders
Refunds
2.1%
Down-0.4%
Revenue
$12,480
Up+8.0%
vs. last month
Shipping
Free3 orders
Refunds
2.1%
Down-0.4%
Lessons
50%
12 / 24
Quizzes
100%
4 / 4
Certificates
1

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.

Revenue
$12,480
Up+8.0%
Shipping
Free
Refunds
2.1%
Down-0.4%

API

Props

Name
Type
Default
Description
items
required
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).
columnsnumber | "auto-fit""auto-fit"A fixed number of columns, or auto-fit.
min-widthnumber120Minimum width of a tile with auto-fit.
compactbooleanfalseSmaller values and padding.
© 2026 melsami UI.
Developer documentation for melsami UI.