Calendar
A date-based UI component that enables users to view and select dates, supporting scheduling and event tracking. It provides an intuitive calendar interface.
Installation
Install the component via the CLI in one command.
npx shadcn@latest add @intentui/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
Check out the calendar in action in the Date Picker and Date Range Picker documentation.
Component API
Calendar
The Calendar component displays a single-date calendar.
| Prop | Type | Default |
|---|---|---|
className | string | - |
CalendarHeader
The CalendarHeader component contains calendar navigation controls.
| Prop | Type | Default |
|---|---|---|
className | string | - |
CalendarGridHeader
The CalendarGridHeader component renders the weekday row.
SelectMonth
The SelectMonth component renders the month selector in the calendar header.
SelectYear
The SelectYear component renders the year selector in the calendar header.
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.