Skip to main content
Calendar
@coinbase/cds-web@8.56.1
Calendar is a flexible, accessible date grid component for selecting dates, supporting keyboard navigation, disabled/highlighted dates, and custom rendering.
import { Calendar } from '@coinbase/cds-web/dates/Calendar'
Peer dependencies
  • react-dom: ^18.3.1
Related components

Calendar is a date grid for selecting dates and powers the picker in DatePicker. Control the visible month with selectedDate or seedDate, and use onPressDate to handle selection. It supports keyboard navigation, disabled and highlighted dates, and custom styling via classNames and styles.

Basics

Basic usage

Loading...

Disabled dates

Loading...

Highlighted dates

Loading...

Styling

Slot styling

Use the classNames and styles props to target specific elements: root, header, monthLabel, navArrows (container), navArrow (each button), dayHeader, content (day header + date grid), calendarGrid (date cells container), and dayCell.

Loading...

Accessibility

Use nextArrowAccessibilityLabel and previousArrowAccessibilityLabel so screen reader users can navigate months. When using disabledDates, minDate, or maxDate, provide disabledDateError so users understand why a date cannot be selected.

Loading...

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.