Skip to content

StatTile

A dashboard tile: label, big value, toned change, trend sparkline.

Group: Data · Kind: macro · in the lite catalog

example
Active users+12 %
1,284
tone · danger
Error rate+0.1 %
0.42 %
no trend
Open issues
37

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-stat-tile on Web
exponential-ui-stat-tile on iOS
exponential-ui-stat-tile on Android
exponential-ui-stat-tile on Desktop
tone · neutral
Active users+12 %
1,284
tone · primary
Active users+12 %
1,284
tone · warning
Active users+12 %
1,284
tone · info
Active users+12 %
1,284
Prop Type Required Bindable Description
label string yes yes What is measured.
value string yes yes The formatted value.
delta string – yes The change (+12 %).
tone neutral | primary | success | warning | danger | info – yes The change’s tone. Default "neutral".
trend [number] – yes Recent values (sparkline).

None.

None.

none

No basic catalog component maps here.

Box · Card · Sparkline · Text

Role: group

group labelled by its label; the sparkline is an img with the generated summary

Not focusable; no keys.

Recipe parts: StatTile/root StatTile/card StatTile/header StatTile/label StatTile/delta StatTile/value StatTile/trend

Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Card · Sparkline · Text · Table · Chart