Date and time

Date Field

A form input specifically for entering and selecting dates, supporting various date formats and validation.

Basic

A date field allows users to enter and adjust date and time values using a keyboard. Each part of the date is shown in its own editable segment.

Loading...

Installation

npx shadcn@latest add @intentui/date-field

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

Date Time Field

You can also use the date field to select both date and time.

Loading...

Validation

When validation is applied, the date field will show a validation message if the entered value is invalid.

Loading...

Suffix and prefix

You can add a suffix or prefix to the date field to provide additional context or functionality.

Loading...

Controlled

In a controlled date field, the value must be passed as a prop, and the field is not directly editable by the user.

Loading...

Uncontrolled

In a controlled date field, the value must be passed as a prop, and the field is not directly editable by the user.

Loading...

Readonly

In a readonly date field, the value is provided as a prop, and the field is not editable by the user.

Loading...

Disabled

A disabled date field is non-interactive and visually represented in 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