Props
| Prop | Type | Default | Notes |
|---|---|---|---|
date | string | '' | |
format | long | short | narrow | long | |
numeric | auto | always | auto | |
live | boolean | false |
StellarUI
Localized relative-time formatter with optional live updates.
<stellar-relative-time date="2024-01-01T12:00:00.000Z"></stellar-relative-time>Complete props, events, slots, and implementation notes for the shipped relative-time formatter.
| Prop | Type | Default | Notes |
|---|---|---|---|
date | string | '' | |
format | long | short | narrow | long | |
numeric | auto | always | auto | |
live | boolean | false |
| Event | Source | Notes |
|---|---|---|
| custom events | none | stellar-relative-time is display-only and does not emit custom events. |
| Slot | Notes |
|---|---|
| none | This component has no slots. It renders one semantic <time> element. |