f0rextasy

Time Input

Forms 1

About

A stepper-style time picker with up/down controls for hours and minutes and an optional AM/PM toggle, for forms like event or showtime scheduling.

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

Code

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

Usage.tsx

import * as React from "react";
import { TimeInput } from "@/components/ui/time-input";

export default function TimeInputDemo() {
  const [time, setTime] = React.useState("20:45");

  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-background p-8">
      <div className="flex flex-col items-center gap-4">
        <TimeInput defaultValue="20:45" onValueChange={setTime} />
        <p className="text-sm font-mono text-muted-foreground">
          RESERVED SCREENING:{" "}
          <span className="font-bold text-foreground">{time}</span>
        </p>
      </div>
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    1
  • User Profile Dossier

    User Profile Dossier

  • Clinic Booking Block

    Clinic Booking Block

  • Page About

    Page About

  • Empty State Card

    Empty State Card

  • Emoji Picker

    Emoji Picker

  • Running Order Timeline

    Running Order Timeline

  • Time Ago

    Time Ago

More in Forms

View all
  • Premium Auth

    Premium Auth

    503
  • Login 1

    Login 1

    52
  • Authentication Card

    Authentication Card

    47
  • Book A Demo 3

    Book A Demo 3

    83
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    70
  • Book A Demo 4

    Book A Demo 4

    52
  • Form

    Form

    136