API Reference

TimeStringProps

interface

Full props for the TimeString component.

Defined in package/src/types.ts:525

Renders as <span> by default. Use the render prop to override.

PropTypeDefaultDescription
renderReactElement | ((props: HTMLProps<span>, state: TimeStringState) => ReactElement)Custom render function or element. Receives HTML props for <span> and component state.
localesstring | string[]BCP 47 locale(s) for time formatting. Falls back to the Root locale.
optionsIntl.DateTimeFormatOptionsIntl.DateTimeFormat options for customizing the output.