Calendar
A standalone month-grid date selector built on native Date math. Full keyboard navigation, min/max bounds, and arbitrary disabled days.
Import
import { Calendar } from '@matix/components/calendar';Usage
November 2026
Su
Mo
Tu
We
Th
Fr
Sa
Min & Max Bounds
Pass minDate / maxDate to constrain the selectable range, or isDateDisabled for arbitrary rules (e.g. disable weekends).
November 2026
Su
Mo
Tu
We
Th
Fr
Sa
Week Start
Defaults to Sunday (0). Pass weekStartsOn={1} to start on Monday.
November 2026
Mo
Tu
We
Th
Fr
Sa
Su
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
value | Date | null | — | Controlled selected date |
defaultValue | Date | null | null | Uncontrolled initial value |
onValueChange | (date: Date | null) => void | — | Fires when a new day is picked |
minDate | Date | — | Earliest selectable date (inclusive) |
maxDate | Date | — | Latest selectable date (inclusive) |
isDateDisabled | (date: Date) => boolean | — | Return true to disable a specific date |
weekStartsOn | 0 | 1 | 0 | 0 = Sunday, 1 = Monday |
aria-label | string | 'Calendar' | Accessible label for the grid |
labels | { previousMonth?: string; nextMonth?: string } | — | Screen-reader text of the month buttons, for translation |
icons | { previous?: ReactNode; next?: ReactNode } | — | Replaces the built-in icons. See the Icons guide |
sx | StyleXStyles | — | StyleX override for the root |
Accessibility
- Grid uses
role="grid"withrole="columnheader"on weekday labels androle="gridcell"on each day. - The focused cell uses
tabIndex=0; all other cells usetabIndex=-1so arrow keys drive navigation. - Selected day carries
aria-selected="true"; disabled days carryaria-disabled="true". - Full accessible date (weekday, month, day, year) is announced via
aria-labelon each cell, using the visitor's locale. - Month label is wrapped in
aria-live="polite"so it announces when navigated.
Keyboard
| Key | Action |
|---|---|
ArrowLeft / ArrowRight | Move one day |
ArrowUp / ArrowDown | Move one week |
PageUp / PageDown | Move one month |
Shift + PageUp / Shift + PageDown | Move one year |
Home | Start of week |
End | End of week |
Enter or Space | Select focused day |