Relative Zeit — ui.relative-time
Relative Zeitangabe („vor 3 Minuten“, „in 2 Tagen“) als natives time-Element mit absolutem Titel — serverseitig berechnet, now-Prop hält Demos deterministisch 1.1: feste Texte mehrsprachig (invisible_i18n).
UI Elementv1.1.1Inhaltweb.documentweb.applicationdesktop.shellemail.client
Beispiele
Vergangenheit
Zukunft
Gerade eben
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
datetime * | string | — |
now | string | "" |
tone | string: default | muted | "muted" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--relative-time-color | var(--color-text-default) |
Genutzte Design-Tokens
color.text.default color.text.muted font.family.default text.sm