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 accent's text colour, so the screen's focus carries Cinder's colour; it is never underlined and never a link.
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").
When the value is the title of what follows it ("2 need you" over the reviews that need you), give it an action, such as a Link in its more form to the page that holds the rest. It sits at the end of the value's first line, centred on it, as a section's action sits beside its heading, and drops to the next line only when the two do not fit side by side.
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 accent's text colour. A snippet must contain phrasing content, such as text and an inline badge. | |
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. | |
action | snippet | The value's action, such as a Link in its more form to the page that holds the rest
("Open Reviews"), when the value is the title of what follows it. It sits at the end of the
value's first line, centred on it, as a section's action sits beside its heading, and drops to
the next line only when the two do not fit side by side. |