Date and time

Date Picker

A UI component that provides an interactive way to select a single date from a calendar view.

Basic

A date picker combines a DateField with a Calendar popover, allowing users to either type in or select a date and time.

Loading...

Installation

npx shadcn@latest add @intentui/date-picker

Composed components

When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.

This component comes packed with several components to enhance functionality and provide a seamless experience.

Manual installation

npm i react-aria-components @intentui/icons

Date and Time

While not a full-fledged date-time picker, this setup lets you edit both date and time in a segmented field.

Loading...

Validation

To ensure that the date picker is filled out, use the isRequired prop.

Loading...

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.

Loading...

Controlled

Take control of your date picker by passing a value prop, which allows you to manage the selected date.

Loading...

Disabled

When the date picker is disabled, it becomes non-interactive and visually represents a disabled state.

Loading...
Unlock the full power of
Design Intent UI
Build modern web apps faster with 350+ blocks and polished templates crafted for professionals.
Explore