← Inventory
Calendar
Date picker built on react-day-picker, styled with the shared button variants;
supports single, multiple, and range selection via the mode prop.
Accepts all DayPicker props. showOutsideDays defaults to true.
July 2026
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Usage
import { Calendar, CalendarProps } from "@desk/ui/components/calendar";Best practices
Set
modeexplicitly (single|multiple|range) — the selection value shape andonSelectsignature change with it; arangehandler never fires insinglemode.Restrict selectable dates with react-day-picker matchers (
disabled/hidden/startMonth/endMonth), not by filtering after the user clicks.Use
Calendarfor an inline date grid; for a compact click-to-open date field, wrap it in aPopoverbehind aButton/Inputtrigger.
Props
Also exports
- component
Calendar - type
CalendarProps
Composition
Builds on