Time Picker

Below is a time picker component

TimePicker

10

10

AM

Installation

$ pnpm dlx shadcn@latest add https://pulseui-henna.vercel.app/registry/TimePicker.json

Props

PropTypeisCompulsoryDescription
onHrChange
(hr: number) => void
true

sets the hour value of the time

onMinChange
(min: number) => void
true

sets the minute value of the time

onAmPmChange
(amOrPm: "AM" | "PM") => void
true

sets whether it's AM or PM time

Usage