API Reference

MonthYearStringProps

interface

Full props for the MonthYearString component.

Defined in package/src/types.ts:546

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

PropTypeDefaultDescription
renderReactElement | ((props: HTMLProps<span>, state: MonthYearStringState) => ReactElement)Custom render function or element. Receives HTML props for <span> and component state.
localesstring | string[]BCP 47 locale(s) for month/year formatting. Falls back to the Root locale.
optionsIntl.DateTimeFormatOptionsIntl.DateTimeFormat options for customizing the output.
monthIndexnumber0Which visible month to display (0-based).