Getting Started
Foundations
Components
Search for a command to run...
Calendar provides an intuitive visual interface for date selection, showing a monthly grid of dates that users can click to select. It supports single date selection, date ranges, multiple date selection, and various configurations like disabling specific dates, showing week numbers, or customizing the display format. Calendars are commonly used in booking systems, scheduling applications, date filters, or any interface requiring date input.
Built on top of react-day-picker with full keyboard navigation (Arrow keys to move between dates, Enter/Space to select, Page Up/Down for months), accessibility support including proper ARIA attributes and roles, and extensive customization options.
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
import { Calendar } from "@strongtie/design-system/calendar"This module exports the following components:
CalendarCalendarDayButton<CalendarDayButton>| Prop | Type | Default | Description |
|---|---|---|---|
day * | CalendarDay | - | The day to render. |
modifiers * | Modifiers | - | The modifiers to apply to the day. |
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Selected date: 12/1/2025
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
calendarOther CSS classes used by this component:
-dropdown-ghost-nav-next-previous-textbuttoncalendarcalendar-buttoncalendar-caption-labelcalendar-chevroncalendar-daycalendar-day-buttoncalendar-disabledcalendar-dropdowncalendar-dropdown-rootcalendar-dropdownscalendar-hiddencalendar-monthcalendar-month-captioncalendar-monthscalendar-navcalendar-outsidecalendar-range-endcalendar-range-middlecalendar-range-startcalendar-todaycalendar-weekcalendar-week-numbercalendar-week-number-cellcalendar-week-number-headercalendar-weekdaycalendar-weekdayslabelEnsure proper accessibility attributes are added when implementing this component.