Date range picker
Accepts a date range that you type or select from a calendar popover.
Trip dates
6182026
6242026
date-range-picker-demo.tsx
Installation
The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.
npm
yarn
pnpm
bun
Presets
Report period
mmddyyyy
mmddyyyy
date-range-picker-presets-demo.tsx
Disabled
Billing period
612026
6302026
date-range-picker-disabled-demo.tsx
Sizes
6182026
6242026
date-range-picker-sizes-demo.tsx
API reference
vip/ui adds or changes the props below. For all other props, see React Aria DateRangePicker (opens in a new tab).
- size: "xs" | "sm" | "md" | "lg" | "xl" = "lg"
- Sets the size of the field and of the calendar button.
- presets: DateRangePickerPreset[]
- Shortcuts beside the calendar, such as Last 7 days. Each has a label and a start and end value. A preset sets the value and closes the calendar.
- label: string
- Label above the field. Without a label, pass aria-label.
- description: string
- Help text below the field.