- Docs
- Components
- Dates
Calendar
A month to choose a day from, on the WAI-ARIA date grid. Dates are "YYYY-MM-DD", with no library.
- Import
- @qeetrix/react/experimental
- Status
- ExperimentalSince 0.0.6
- Renders
<table role="grid">Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Playground
Every prop, live, and the code it takes.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
Locale
import { Calendar } from "@qeetrix/react/experimental";
<Calendar defaultValue="2026-10-14" />02
A month
One day in the Tab order: arrows move by day and week, Page Up and Down by month, Enter chooses. The title opens the years.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
<Calendar defaultValue="2026-10-14" />03
Limits
min and max, and isDateDisabled for weekends and holidays: ruled-out days are greyed and skipped.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
const isDayOff = (date: string) => isWeekend(date) || holidays.has(date);
<Calendar min={today} max="2026-11-30" isDateDisabled={isDayOff} />04
Controlled
value and onValueChange, as "YYYY-MM-DD": no Date objects, no time zones.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
const [date, setDate] = useState("2026-11-03");
<Calendar value={date} onValueChange={setDate} min={today} max="2026-11-30" isDateDisabled={isDayOff} />05
The week's first day
From the locale: Sunday for India and the US, Monday for Britain.
en-IN
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
en-GB
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
<Calendar locale="en-IN" defaultValue="2026-10-14" />
<Calendar locale="en-GB" defaultValue="2026-10-14" />06
Disabled and read-only
Disabled: dimmed, and the month stays put. Read-only: browse the months, choose nothing.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
<Calendar defaultValue="2026-10-14" disabled />
<Calendar defaultValue="2026-10-14" readOnly />07
In Hindi
Its month, its weekdays and its words come from QeetrixProvider.
| रवि | सोम | मंगल | बुध | गुरु | शुक्र | शनि |
|---|---|---|---|---|---|---|
<QeetrixProvider locale="hi-IN" messages={hi}>
<Calendar defaultValue="2026-10-14" />
</QeetrixProvider>