Overview
Reference usage
Spotlight is the one focal value of a screen, such as "Ends in 45 min" or "2 need you". It is set at display size in the default text colour, never the accent, which is reserved for actions.
Show liveness with status and statusLabel, which draw a status dot and word above the value. The caveat snippet renders in warning text directly under the value and is where staleness goes ("Updated 12 min ago").
Usage
Ends in 45 min
Updated 12 min ago
When to use
- Giving a screen one value to read first, such as a deadline or the number of items that need you.
- Showing that a value may be stale with a caveat directly under it.
- Showing several metrics side by side — use statistic-group.
- Showing a metric with a label and a change indicator — use statistic.
Examples
One focal value with a caveat
The value is display-size neutral text, never the accent. The caveat sits in warning text directly under it and says how fresh the value is.
Liveness as a status dot
Liveness is a status dot and word above the value, so the value itself stays neutral.
Props
Name | Type | Default | Description |
|---|---|---|---|
value required | text | The one focal value of the screen, such as "Ends in 45 min" or "2 need you". It is set at display size in the default text colour, never the accent. | |
status | 'online''offline''warning''danger''info''pending''neutral''success' 1 more members'accent' | Liveness of the value, drawn as a status dot with its word above the value. Set statusLabel to word it. Omit both for a value with no liveness. | |
statusLabel | text | The word beside the status dot, such as "Live" or "Paused". Left unset, a status draws the word its tone implies. | |
caveat | snippet | Staleness or a caution, such as "Updated 12 min ago", drawn in warning text directly under the value. |