Time picker

A time picker allows users to select a specific time using an interactive input interface.

lucide-react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/time-picker.json

Examples


Time Picker (24-hour)

Readonly and Disabled

With Form


API Reference

Time Picker

PropTypeDefault
militarybooleanfalse
readOnlybooleanfalse
disabledbooleanfalse
valuestring-
defaultValuestring-
onValueChange(value: string) => void-
placeholderstringhh:mm AM/PM,HH:mm