Skip to content
Date & Time

Time Picker

Popover hour/minute (and optional second) selection, 12h or 24h.

Import

tsx
import { TimePicker } from "@cooud-ui/ui";
bash
npx cooud-ui add time-picker

Examples

API Reference

Generated from the component's exported types.

TimePickerProps

PropTypeDefaultDescription
value
TimeValue | stringControlled value — a `{ hours, minutes, seconds }` object (24h `hours`) or a `"HH:mm"` / `"HH:mm:ss"` string.
defaultValue
TimeValue | stringInitial value for uncontrolled usage.
onChange
(value: TimeValue) => voidFired with the normalized `{ hours, minutes, seconds }` whenever the time changes.
hourCycle
12 | 2412`12` renders a 1–12 hour column plus an AM/PM column; `24` renders a 0–23 column.
minuteStep
number1Granularity of the minute column, in minutes.
showSeconds
booleanfalseRender a seconds column.
secondStep
number1Granularity of the seconds column, in seconds.
placeholder
string"Select time"Text shown on the trigger when no value is set.
disabled
booleanfalseDisable the trigger and the whole panel.
aria-label
stringAccessible name for the trigger when there is no visible label.
className
stringExtra classes for the trigger button.
contentClassName
stringExtra classes for the popover panel.
id
stringNative id for the trigger.
align
"start" | "center" | "end""start"Popover alignment relative to the trigger.