About
An iOS-style scrollable spinner for picking hours and minutes, with keyboard navigation and a configurable minute step.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Time Picker to your project and fits it to your theme.
Code
How Time Picker is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import TimePicker from "@/components/ui/time-picker";
export default function TimePickerDemo() {
const [time, setTime] = React.useState<
{ hours: number; minutes: number } | undefined
>(undefined);
return (
<div className="flex min-h-[320px] w-full items-center justify-center bg-background p-8 text-foreground">
<TimePicker value={time} onChange={setTime} />
</div>
);
}














