Skip to content
Components

Calendar

Date selection grid built on react-day-picker and themed through tokens.

Examples

Date picker

Compose Calendar with a Button trigger and Popover when the date grid should open from a field.

Composition

Date selection

  • <Calendar />

Installation

The Control UI source installs this primitive from src/registry/sources/control-ui/ui/calendar.tsx.

Registry command
See registry manifest

Raw code

Primary installed source

src/registry/sources/control-ui/ui/calendar.tsx

Knobs

Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.

--cui-calendar-* · 5 knobsHow the cascade resolves
--cui-calendar-day-radius<length-percentage>var(--radius-control)
--cui-calendar-today-background<color>var(--accent)
--cui-calendar-selected-background<color>var(--primary)
--cui-calendar-selected-foreground<color>var(--primary-foreground)
--cui-calendar-range-background<color>var(--accent)