

Every state


default


focus


open


filled


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "appointment" | Id of the date button; label, panel and summary hang off it. |
| name | string | "appointment" | Form name of the combined value (yyyy-mm-ddThh:mm). |
| label | string | "Appointment" | The field's visible label. |
| description | string | – | Help line under the field. |
| today | Date | – | Today's date; defaults to the real today. Earlier days are disabled. |
| defaultValue | string | – | Value at the start: yyyy-mm-ddThh:mm, or yyyy-mm-dd for a date only. |
| opens | string | "09:00" | First time on offer (hh:mm). |
| closes | string | "17:30" | Closing time (hh:mm); the last slot starts one step before. |
| step | number | 15 | Minutes between times. |
| closedDays | number[] | [0] | Weekdays that are closed (0 = Sunday), disabled in the calendar. |
| datePlaceholder | string | "Choose a date" | Date button text before a date is chosen. |
| timePlaceholder | string | "Time" | Select text before a time is chosen. |
| joiner | string | "at" | Word between date and time in the summary. |
| locale | string | "en-GB" | Locale for dates and times. |
| onValueChange | (value: string) => void | – | Called with yyyy-mm-ddThh:mm once both parts are chosen. |
| required | boolean | – | Requires a time before the form submits. |
| disabled | boolean | – | Disables both parts. |
| error | string | – | Error message; marks both parts invalid. |
| className | string | – | Extra classes on the field. |
More date pickers
All 10date-picker-03 is in UI ProGet UI Pro, €199


