Time field
Accepts a time, with one editable segment for each part.
Meeting time
930AM
time-field-demo.tsx
Installation
The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.
npm
yarn
pnpm
bun
24-hour clock
Departure time
1845
time-field-24-hour-demo.tsx
Minimum and maximum
A time outside the limits shows an error when the field loses focus.
Call time
1000AM
Choose a time from 9:00 AM to 5:00 PM.time-field-limits-demo.tsx
Disabled
Reminder time
800AM
time-field-disabled-demo.tsx
Sizes
930AM
time-field-sizes-demo.tsx
API reference
vip/ui adds or changes the props below. For all other props, see React Aria TimeField (opens in a new tab).
- size: "xs" | "sm" | "md" | "lg" | "xl" = "lg"
- Sets the size of the field.
- label: string
- Label above the field. Without a label, pass aria-label.
- description: string
- Help text below the field.