About
A React time field component that allows users to select a time value. Used in forms to choose hours and minutes through an accessible time input.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Time Field to your project and fits it to your theme.
Code
How Time Field is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import { DateInput, DateSegment, Description, Label, TimeField } from "@/components/ui/tailgrids-time-field"
import { Time } from "@internationalized/date"
import { useState } from "react"
export default function TimeFieldPreview() {
const [value, setValue] = useState<Time | null>(new Time(9, 30));
return (
<TimeField value={value} onChange={setValue}>
<Label>Meeting time</Label>
<DateInput>{segment => <DateSegment segment={segment} />}</DateInput>
<Description>Choose a start time for the meeting.</Description>
</TimeField>
);
}
















