About
A React date field component that lets users input a date. Used for forms, filters, and scheduling with keyboard-friendly interaction.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds DateField to your project and fits it to your theme.
Code
How DateField is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import { DateField, DateInput, DateSegment, Description, Label } from "@/components/ui/tailgrids-date-field"
import { CalendarDate } from "@internationalized/date"
import { useState } from "react"
export default function DateFieldPreview() {
const [value, setValue] = useState<CalendarDate | null>(
new CalendarDate(2026, 6, 15)
);
return (
<DateField value={value} onChange={setValue}>
<Label>Appointment date</Label>
<DateInput>{segment => <DateSegment segment={segment} />}</DateInput>
<Description>Select your preferred appointment date.</Description>
</DateField>
);
}
















