@hoag/ui — UI components built with shadcn, Radix UI & Tailwind CSS
Components
Time Picker

Time Picker

TimePicker provides time-only selection for common scheduling workflows.

Installation

pnpm --filter @hoag/ui build

Usage

import { TimePicker } from "@hoag/ui/time-picker";
 
<TimePicker value="08:30" onChange={(time) => console.log(time)} />;

Examples

Basic

<TimePicker value="08:30" />

12-hour mode

<TimePicker use12HourFormat value="02:15 PM" />

API Reference

PropTypeDescription
valuestringControlled time value.
onChange(value?: string) => voidCallback when time changes.
use12HourFormatbooleanRender 12-hour format.
disabledbooleanDisable the picker.