<TimeField aria-label="Event time">
<DateInput />
</TimeField>pnpm dlx shadcn@latest add @dotui/time-fieldUse TimeField to allow users to enter and edit time values using a keyboard.
import { TimeField } from "@/components/ui/time-field";
import { DateInput } from "@/components/ui/input";
import { Label } from "@/components/ui/field";<TimeField>
<Label>Time</Label>
<DateInput />
</TimeField>Use the controls below to experiment with different time field props and see the live preview and code update.
A time field allows users to enter and edit time values using a keyboard. Each part of a time value is displayed in an individually editable segment.
| Prop | Type | Default | |
|---|---|---|---|
| — | ||
| — | ||
| — | ||
| — | ||
| | ||
| — | ||
| — | ||
| — | ||
| — | ||
| — | ||
| — | ||
Last updated on 12/21/2025
Bringing singularity to the web.
Built with passion by @mehdibha.
<Dynamic(TimeField)>
<Dynamic(Label)>Time</Dynamic(Label)>
<Dynamic(DateInput) />
</Dynamic(TimeField)>