f0rextasy

Time Input

Forms 3

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

    10
  • Stamp Seal

    Stamp Seal

    7
  • Network Graph

    Network Graph

    7
  • Board Checklist

    Board Checklist

    5
  • Empty State Card

    Empty State Card

    3
  • Running Order Timeline

    Running Order Timeline

    3
  • Invite Modal

    Invite Modal

    3
  • Data Table

    Data Table

    3

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Login 1

    Login 1

    53
  • Form

    Form

    137
  • Card Studio

    Card Studio

    41
  • SignInPage

    SignInPage

    667
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K