Data
Stat <pm-stat>
Stat / KPI: a labelled number with an optional change indicator. Trend is inferred from the sign of delta unless set; inverse flips colours (e.g. costs, latency).
Sizes
Set with the size attribute; controls keep touch-sized targets on phones.
size="sm"size="md"size="lg"Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
icon | string | — | Registered icon name (see registerIcons); an icon slot overrides it. |
label | string | — | Accessible name (and visible label where the component shows one). |
value | string | — | Current value. |
delta | string | — | Change, e.g. "+12%" or "-3". |
description | string | — | Supporting text under the title. |
trend | 'up' | 'down' | 'neutral' | — | Direction of the change: up, down or flat (colours the delta). |
inverse | boolean | — | A decrease is good (e.g. error rate). |
size | 'sm' | 'md' | 'lg' | — | Size: sm, md or lg (md when not set). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Slots
| Slot | Description |
|---|---|
icon | Icon next to the label. |
(default) | Extra footer content (sparkline, link). |
Used in templates
Overview dashboardTraffic analyticsOrdersCustomer 360Team and rolesUser profileLanding page