Date range picker
CoreA range picker that grows from its trigger into two months with presets and a stretching range highlight.
pnpm dlx shadcn@latest add https://wui.alann.works/r/date-range-picker.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
value | DateRange | null | — |
defaultValue | DateRange | null | — |
onChange | (range: DateRange) => void | — |
label | string | — |
placeholder | string | — |
presets | DateRangePreset[] | — |
minDate | Date | — |
maxDate | Date | — |
weekStartsOn | 0 | 1 | — |
locale | string | — |
months | "auto" | 1 | 2 | — |
boundary | () => HTMLElement | null | — |
className | string | — |