Mohammad AlHabil

TimePicker

Forms 23

About

A simple and intuitive time picker that lets users easily select hours, minutes, and seconds. It supports both 12-hour (AM/PM) and 24-hour formats, with smooth scrolling and clear options. You can also set minimum and maximum times to guide user input.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds TimePicker to your project and fits it to your theme.

Code

How TimePicker is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useState } from 'react'
import { TimePicker } from "@/components/ui/time-picker";

export default function DemoOne() {
  const [value, setValue] = useState(new Date());
  return (
    <TimePicker
      use12HourFormat= { true }
      value = { value }
      onChange = { setValue }
    />
  );
}

Dependencies

More in Forms

View all
  • Form

    Form

    10
  • Contact Form

    Contact Form

    33
  • Premium Auth

    Premium Auth

    616
  • Paper Plane

    Paper Plane

    113
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Onboarding Stepper

    Onboarding Stepper

    14
  • Input

    Input

    14