Pass the moment and the zone of the person. Put a LocalTimeEmpty inside for a call that is not booked yet.
next-calls.tsx
LocalTime
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| layout | "inline""stacked" | "inline" | |
| date | DateLike | null | — | The moment (an invite, a booking, office hours): a Date, an ISO string, epoch milliseconds, or a DateValue; a value with no zone ("2026-11-12T09:00") is a wall time in timeZone. The text "now": their time now, kept true (a team card). null shows "—". |
| end | DateLike | null | — | The end of a range ("9:00 – 10:00 AM"). Not with date="now". |
| time | string | — | Their IANA zone: the zone of the event or the person ("America/New_York"). |
| local | string | — | The reader's IANA zone. Default: the runtime zone, known only after hydration. Pass it when the server knows it (a profile setting): then the full text renders on the server. |
| hour | 1224 | — | 12 ("3:00 PM") or 24 ("15:00"). Default: the locale's cycle. |
| locale | string | — | The BCP 47 tag. Default: the DisplayLocaleProvider locale, else "en-US". |
| now | number | Date | — | A fixed now for date="now" (tests, stories): no clock runs. |
| labels | Partial<LocalTimeLabels> | — | The words, to translate them (LOCAL_TIME_LABELS of #/lib/time-zone-format). |
| children | ReactNode | — | A LocalTimeEmpty part: the words of no value. With a value, they are not drawn. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
LocalTimeEmpty
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| data-slot | string | — | The data-slot of the root: the item's own slot ("time-ago"). Default "empty-value". |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
Built with
Installs with Local Time
- Components
- Clock,Date Display





