9.4k

Calendar

A date picker component with range and multi-select support.

Installation

Usage

API Reference

This component wraps react-day-picker with custom styling.

Calendar

A calendar component for date selection.

For the full list of props, see the react-day-picker documentation.

Customizing Cell Size

The calendar uses CSS custom properties for cell sizing. By default, the cell size is --spacing(9) on mobile and --spacing(8) on larger screens:

You can customize the cell size by passing a custom className:

Or use responsive values:

Examples

Single Date Selection

Date Range Selection

Use captionLayout="dropdown" with startMonth and endMonth to enable month/year dropdown navigation:

Select Dropdown for Month/Year

Calendar with a custom Select component for month and year navigation:

Combobox Dropdown for Month/Year

Calendar with a searchable Combobox for month and year navigation:

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).