Time Picker

React time picker built on the native time input, styled to match the other inputs, with a controlled value, onChange, disabled state and an aria-label.

src/registry/ui/time-picker.tsx/r/time-picker.json

Installation#

bash
npx shadcn@latest add @minidev/time-picker

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/time-picker.json

Usage#

tsx
import { TimePicker } from "@/components/ui/time-picker"

export function Example() {
  return (
    <TimePicker id="t1" aria-label="Time" />
  )
}

API reference#

TimePicker props
PropTypeDefault
valuestring-
onChange(value: string) => void-
disabledboolean-
classNamestring-
idstring-
aria-labelstring-

Dependencies#

npm

React only

Built from

Examples#

All form components

Learn more