Forms
Time Picker
Hour and minute selects for time entry with 15-minute step intervals and controlled value support.
Quick Preview
:
Selected: 09:00
Installation
# No extra dependencies
// Copy component fromsrc/components/forms/TimePicker.tsx
Usage
import TimePicker from '@/components/forms/TimePicker'<TimePickerlabel="Meeting Time"value={time}step={15}onChange={(v) => setTime(v)}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | - | Label above the picker |
value | string | - | Controlled value (HH:MM) |
onChange | (value: string) => void | - | Called when time changes |
step | number | 15 | Minute step interval |
className | string | - | Additional CSS classes |