DatePicker
40px day cells and 64px month cells with 6px corners: today, selected, in range, outside and disabled. Pickers carry presets on the right.
Figma: 10 / Components / DatePickerUsage
Source: src/components/ui/date-picker.tsx
import { DatePickerMonthRange, DatePickerRange, DatePickerSingle } from '@/components/ui/date-picker'<DatePickerRange defaultValue={{ from: new Date(2026, 0, 1), to: new Date(2026, 0, 31) }} />DatePicker/Single
One calendar month. Shown open.
DatePicker/Range
Two months side by side with day presets.
DatePicker/MonthRange
Two years side by side with month presets.
When to use
When to reach for it, and when to use something else.
Use it for
Complete: Reporting periods on dashboards and charts.
Complete: Month ranges for revenue overviews.
Avoid
Not complete: Birthdays and other far-away dates; use an Input with a format hint.
DatePickerSingle
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultValue | Date | – | The starting date. |
| onChange | (date: Date) => void | – | Called with the chosen date. |
| inline | boolean | false | Shows the calendar without the trigger. |
DatePickerRange, DatePickerMonthRange
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultValue | { from: Date, to: Date } | – | The starting range. |
| defaultPreset | string | – | Marks a preset as active. |
| onChange | (range: DateRange) => void | – | Called with the chosen range. |
| inline | boolean | false | Shows the panel without the trigger. |