Forms
Date picker
Combines an editable ISO date input with an integrated Calendar popover, strict constraint validation, and keyboard interaction.
Usage
Examples
Uncontrolled
Controlled
Bounded
Disabled
Read-only
Invalid
Recommendations
| Guidance | Practice |
|---|---|
| Do | Label the date's purpose and state its constraints. Keep editable input and calendar selection available. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Values are dates, not timestamps. Use Date Time Input when the task requires a local time as well. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Controlled date selection value. |
| | — | Initial date selection value in uncontrolled mode. |
| | — | Event handler called when date selection changes. |
| | false | Prevents user interaction when true. |
| | false | Marks the input as read-only; opens calendar for inspection without selection commit. |
| | false | Indicates invalid input value or constraint violation. |
| | false | Requires a value before form submission. |
| | "default" | Visual size variant of the input field. |
| | — | Minimum selectable and valid date boundary. |
| | — | Maximum selectable and valid date boundary. |
| | — | Callback to determine whether a given date is unavailable for selection. |
| | — | Locale configuration passed to the calendar grid. |
| | — | Text direction for layout and navigation. |
| | — | First day of the week (0 for Sunday, 1 for Monday, etc.). |
| | — | HTML form field name. |
| | — | HTML element identifier. |
| | — | Accessible label text when no visual label is present. |
| | — | ID of element labelling this input. |
| | — | ID of element describing this input. |
| | false | Automatically focuses the text input on mount. |
| | "div" | Composite single-date picker with editable text input and calendar popover. |
| | "label" | Use dropdown to navigate directly with month and year selects. |
| | 100 years before today in dropdown mode | First month available for navigation. Does not change date availability. |
| | End of the current year in dropdown mode | Last month available for navigation. Does not change date availability. |