API Reference
MonthYearStringProps
interfaceFull props for the MonthYearString component.
Defined in package/src/types.ts:546
Renders as <span> by default. Use the render prop to override.
| Prop | Type | Default | Description |
|---|---|---|---|
| render | ReactElement | ((props: HTMLProps<span>, state: MonthYearStringState) => ReactElement) | — | Custom render function or element. Receives HTML props for <span> and component state. |
| locales | string | string[] | — | BCP 47 locale(s) for month/year formatting. Falls back to the Root locale. |
| options | Intl.DateTimeFormatOptions | — | Intl.DateTimeFormat options for customizing the output. |
| monthIndex | number | 0 | Which visible month to display (0-based). |