

Every state


default


focus


selected


limited-selected


next-month


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "tour" | Id prefix for the heading, legend and detail line. |
| name | string | "tour" | Form name of the chosen day (yyyy-mm-dd). |
| label | string | "Tour date" | The calendar's visible label. |
| 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). |
| defaultMonth | string | – | The month shown at the start (yyyy-mm-dd, any day of it). |
| monthsAhead | number | 5 | How many months after this one can be shown. |
| availability | (date: Date) => DatePickerAvailabilityDay | – | A day's status (available, limited, booked) and places left. |
| labels | { available; limited; booked; left: (n) => string; none } | – | Legend words, the "2 left" mark and the line before a day is chosen. |
| locale | string | "en-GB" | Locale for month and day names. |
| onValueChange | (value: string) => void | – | Called with the chosen day (yyyy-mm-dd). |
| disabled | boolean | – | Disables every day and the month buttons. |
| className | string | – | Extra classes on the group. |
More date pickers
All 10date-picker-01 is in UI ProGet UI Pro, €199


