Components
Loading preview...
A flexible time picker component with 12-hour format, AM/PM selection, and optional current time button, designed for easy time selection in forms and applications.
npx shadcn@latest add https://21st.dev/r/preetsuthar17/time-pickerimport { TimePicker } from "@/components/ui/time-picker";
import * as React from "react";
export default function DemoOne() {
const [time, setTime] = React.useState<string>();
return <TimePicker value={time} onChange={setTime} />;
}