Forms
Date Range Picker
Select a start and end date range with native date inputs, min/max validation, and night count display.
Quick Preview
From
→To
Installation
# No extra dependencies
// Copy component fromsrc/components/forms/DateRangePicker.tsx
Usage
import DateRangePicker from '@/components/forms/DateRangePicker'<DateRangePickerlabel="Trip dates"onChange={(range) => console.log(range.from, range.to)}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | - | Label above the picker |
onChange | (range: { from: string; to: string }) => void | - | Called when range changes |
className | string | - | Additional CSS classes |