API Reference
DateStringProps
interfaceFull props for the DateString component.
Defined in package/src/types.ts:505
Renders as <span> by default. Use the render prop to override.
| Prop | Type | Default | Description |
|---|---|---|---|
| render | ReactElement | ((props: HTMLProps<span>, state: DateStringState) => ReactElement) | — | Custom render function or element. Receives HTML props for <span> and component state. |
| locales | string | string[] | — | BCP 47 locale(s) for date formatting. Falls back to the Root locale. |
| options | Intl.DateTimeFormatOptions | — | Intl.DateTimeFormat options for customizing the output. |