

Every state


default


focus


selected


next-week


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "visit" | Id prefix; each day radio is `${id}-${yyyy-mm-dd}`. |
| name | string | "visit" | Form name of the chosen day (yyyy-mm-dd). |
| legend | string | "Choose a day" | The group's visible question. |
| description | string | – | Help line under the legend. |
| today | Date | – | Today's date; defaults to the real today. Earlier days are disabled. |
| defaultValue | string | – | The day chosen at the start (yyyy-mm-dd); its week shows first. |
| weeksAhead | number | 6 | How many weeks after this one can be shown. |
| free | (date: Date) => number | – | Places free on a day; 0 disables it. |
| showFree | boolean | true | Shows the places line under each date. |
| freeLabel | (count: number) => string | n => `${n} free` | The line under a date with places. |
| fullLabel | string | "Full" | The line under a date without places. |
| todayLabel | string | "Today" | Shown instead of today's weekday. |
| previousLabel | string | "Previous week" | Accessible name of the previous button. |
| nextLabel | string | "Next week" | Accessible name of the next button. |
| locale | string | "en-GB" | Locale for weekday and month names. |
| onValueChange | (value: string) => void | – | Called with the chosen day (yyyy-mm-dd). |
| disabled | boolean | – | Disables the whole strip. |
| className | string | – | Extra classes on the fieldset. |
More date pickers
All 10date-picker-10 is in UI ProGet UI Pro, €199


