{"@context":"https://schema.org","@graph":[{"@type":"TechArticle","headline":"Range Calendar","description":"Select a start date and an end date from a calendar.","url":"https://intentui.com/docs/components/date-and-time/range-calendar","author":{"@type":"Person","name":"Irsyad","url":"https://x.com/irsyad"},"publisher":{"@type":"Organization","name":"Intent UI","url":"https://intentui.com","logo":{"@type":"ImageObject","url":"https://intentui.com/icon.svg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://intentui.com/docs/components/date-and-time/range-calendar"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://intentui.com"},{"@type":"ListItem","position":2,"name":"Docs","item":"https://intentui.com/docs"},{"@type":"ListItem","position":3,"name":"Components","item":"https://intentui.com/docs/components"},{"@type":"ListItem","position":4,"name":"Date and time","item":"https://intentui.com/docs/components/date-and-time"},{"@type":"ListItem","position":5,"name":"Range Calendar","item":"https://intentui.com/docs/components/date-and-time/range-calendar"}]}]}
Range Calendar
Loading...
Installation
Add the component with the CLI.
npm
pnpm
yarn
bun
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
Install the dependencies, then copy the component source into your project.
npm
pnpm
yarn
bun
npm install react-aria-components @heroicons/react cn
Examples
Controlled
The range calender can be controlled by passing the value prop.
Loading...
Uncontrolled
The range calendar can be uncontrolled by passing the defaultValue prop.
Loading...
You can see the calendar in action within the Date Picker and Date Range Picker documentation.
Component API
RangeCalendar
RangeCalendar extends the React Aria Components <RangeCalendar> component.
classNamestringvisibleDurationRangeCalendarProps<T>["visibleDuration"]Default:
{ months: 1 }See the React Aria for the full API reference.
