Date and time

Time Field

A time-specific input that lets users enter and adjust time values, supporting 12-hour or 24-hour formats.

Basic

A time field allows users to input and adjust time values using a keyboard, with each segment of the time shown as its own editable unit.

Loading...

Installation

npx shadcn@latest add @intentui/time-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

Hour cycles

Change the hour format in the time field by using the hourCycle prop.

Loading...

Suffix and prefix

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

Loading...

Validation

To ensure the time field is properly filled out, use the isRequired prop.

Loading...

Controlled

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

Loading...

Readonly

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

Loading...

Disabled

A disabled time field cannot be interacted with and is visually represented as being inactive.

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