Getting Started
Dark Mode
Charts
Colors
Drag-and-drop
Forms
Utilities
Date Picker
Pop up a calendar, click a date, and it’s set. It’s like pointing at a day on the wall calendar, but digital and without the thumbtacks..
Basic
A date picker combines a DateField with a Calendar popover, allowing users to either type in or select a date and time.
Installation
If you hit any issues, make sure you check out the installation guide here for more information.
Composed Components
Plug this component into the CLI, and it automatically loads all the included components. No need to add them individually.
The Date Picker comes packed with a variety of components to make it stand out.
Manual Installation
Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.
Date and Time
While not a full-fledged date-time picker, this setup lets you edit both date and time in a segmented field.
Validation
To ensure that the date picker is filled out, use the isRequired
prop.
Custom Validation
The validate
function is your go-to for custom validation rules. It checks the current date value and returns an error message string or strings if the value doesn't meet your criteria.
Controlled
Take control of your date picker by passing a value
prop, which allows you to manage the selected date.
Friday, January 3, 2025
2025-01-03
Disabled
When the date picker is disabled, it becomes non-interactive and visually represents a disabled state.