Range Calendar
A dual-date selection component that allows users to pick a date range, commonly used for booking and scheduling. It supports selecting start and end dates.
Installation
Install the component via the CLI in one command.
npx shadcn@latest add @intentui/range-calendar
Composed components
When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.
Manual installation
Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.
npm install react-aria-components @heroicons/react tailwind-merge
Examples
Controlled
The range calender can be controlled by passing the value prop.
Uncontrolled
The range calendar can be uncontrolled by passing the defaultValue prop.
You can see the calendar in action within the Date Picker and Date Range Picker documentation.
Component API
RangeCalendar
The RangeCalendar component lets users select a date range.
| Prop | Type | Default |
|---|---|---|
className | string | - |
visibleDuration | RangeCalendarProps<T>["visibleDuration"] | { months: 1 } |
See the React Aria for the full API reference.
Unlock the full power ofIntent UI Design
Build modern web apps faster with 1000+ resources across components, blocks, patterns, templates, and starter kits.