Skip to content
Design System
GitHub

Freshness stamp

v0.64.0, changelogBeta

How old a device's last report is, beside the values it qualifies: live, lagging, stale, never reported, or not applicable (air-gapped).

API reference

Generated from the types. Every part also takes className.

FreshnessStamp

lastAtrequired
DateInput | nullWhen the last report arrived; null or undefined when none has.
thresholdsrequired
{ laggingAfterMs: number; staleAfterMs?: number }The server's liveness thresholds, never a number of the interface's own.
airGapped
boolean
offline
booleanThe server's verdict, when it sends one (liveness === "offline").
now
numberms since the epoch. Pass one useNow from the page to keep a list of stamps in step; otherwise it reads the clock.
hideWhenLive
boolean = falseNothing while live: a mark on every healthy panel teaches people to stop reading marks.
variant
"text" | "icon" = "text""icon" shows the glyph alone, the words in its tooltip and name: for a value that already sits beside a stamp.
locale
string
timeZone
stringIANA zone for the exact time; the browser's when omitted.
refreshMs
number = 30_000How often it reads the clock when no now is given. Ages are said to the minute, so 30 s is enough.
labels
Partial<FreshnessStampLabels>