Themes
- Default
- Catppuccin
- Dracula
- High Contrast
- High Contrast Light
- Monokai
- Nord
- One Dark
- Solarized
- Tokyo Night
- AMOLED
- Aura
- Ayu
- Carbonfox
- Catppuccin Frappe
- Catppuccin Macchiato
- Cobalt2
- Cursor
- Everforest
- Flexoki
- GitHub
- Gruvbox
- Kanagawa
- Lucent Orng
- Material
- Matrix
- Mercury
- Night Owl
- OC-2
- One Dark Pro
- OpenCode
- Orng
- Osaka Jade
- Palenight
- Rose Pine
- Shades of Purple
- Synthwave '84
- Vercel
- Vesper
- Zenburn
Utility
AI
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/time-picker
Usage
import { TimePicker } from "@/components/ui/time-picker";<TimePicker
label="Meeting time"
value={{ hours: 14, minutes: 30 }}
onChange={(time) => console.log("Changed:", time)}
onSubmit={(time) => console.log("Submitted:", time)}
/>API Reference
TimePicker
| Prop | Type | Default |
|---|---|---|
value | { hours: number; minutes: number } | - |
onChange | (time: { hours: number; minutes: number }) => void | - |
onSubmit | (time: { hours: number; minutes: number }) => void | - |
label | string | - |
format | 12 | 24 | 24 |
autoFocus | boolean | false |
id | string | - |