Range Calendar

Loading...

Installation

Add the component with the CLI.

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 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.

classNamestring
visibleDurationRangeCalendarProps<T>["visibleDuration"]
Default: { months: 1 }

See the React Aria for the full API reference.

Design