

Every state


default


focus


selected


past-disabled


other-year


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "month" | Id prefix; each month is `${id}-yyyy-mm`. |
| name | string | "month" | Form name of the chosen month, yyyy-mm. |
| legend | string | "Billing month" | The group's visible label. |
| description | string | – | Help line under the legend. |
| defaultValue | string | – | The month chosen at the start, yyyy-mm. |
| defaultYear | number | – | The year shown at the start; defaults to the chosen month's year or this year. |
| min | string | – | The first month that can be picked, yyyy-mm; earlier months are disabled. |
| max | string | – | The last month that can be picked, yyyy-mm. |
| today | Date | – | Today's date, to mark this month; defaults to the real today. |
| locale | string | "en-GB" | Locale for month names. |
| onValueChange | (value: string) => void | – | Called with the chosen month, yyyy-mm. |
| required | boolean | – | Requires a month before the form submits. |
| disabled | boolean | – | Disables the group. |
| error | string | – | Error message; marks the group invalid. |
| className | string | – | Extra classes on the fieldset. |
More date pickers
All 10date-picker-05 is in UI ProGet UI Pro, €199


