StellarUI
<stellar-calendar-time>
Tiny time formatter for event and calendar labels, with 12-hour or 24-hour output.
Preview
Tiny time formatter for event and calendar labels, with 12-hour or 24-hour output.
Markup
<stellar-calendar-time value="08:30"></stellar-calendar-time>Properties
| Prop | Type | Default | Notes |
|---|---|---|---|
value | string | '' | |
hour | string | '' | |
minute | string | '' | |
format | 12h | 24h | 12h |
Events
Slots
Notes
- Use `value` with `HH:MM` to get a stable label in one place.
- Use `format="24h"` for zero-padded 24-hour output instead of `AM/PM` labels.
- `value`, `hour`, and `minute` support the same local-time model used by event attributes.