

Every state


default


focus


selected


range


this-month


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "stay" | Id prefix for the heading and the status line. |
| label | string | "Price per night" | Visible heading over the calendar. |
| checkInName | string | "check-in" | Form name of the hidden check-in date (ISO). |
| checkOutName | string | "check-out" | Form name of the hidden check-out date (ISO). |
| getPrice | (date: Date) => number | null | – | The price of the night from a date, or null when nothing is free. The default makes up a guest house. |
| currency | string | "EUR" | ISO 4217 code for the prices. |
| defaultValue | { from: string; to?: string } | – | Check-in and check-out at the start, ISO yyyy-mm-dd. |
| defaultMonth | string | – | The month shown at the start, yyyy-mm. |
| today | Date | – | Today's date; defaults to the real today. Earlier days can't be picked. |
| locale | string | "en-GB" | Locale for dates and prices. |
| onValueChange | (value: { checkIn: string; checkOut: string; total: number }) => void | – | Called with the ISO dates and the total once check-out is chosen. |
| disabled | boolean | – | Disables the calendar. |
| className | string | – | Extra classes on the wrapper. |
More date pickers
All 10date-picker-07 is in UI ProGet UI Pro, €199


