Calendar
November 2026
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
npx shadcn add @klarhimmel/calendarCopy for AIExamples
Basic
Limits
Sunday
DetailsAbout, usage, props and more
A month of days to choose from: the WAI-ARIA date picker grid, with today named and unavailable days said.
When to use
Use for
Choosing a day when seeing the month helps: a booking, a deadline.
Not for
A date people already know. Use Date picker, so they can type it.
Pairs with
Date picker, Popover, a status line.
Preview
November 2026
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
Chosen: 2026-11-18. Arrow keys move, Page Up and Page Down change month.
Import
Import
- Files
- calendar.tsx, in components/klarhimmel/ui/. With it: theme, utils. npm: lucide-react.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | - | The chosen day, "YYYY-MM-DD", or "" for none. |
defaultValue | string | '' | The chosen day as 'YYYY-MM-DD'; '' means none. Controlled or uncontrolled. |
onValueChange | (value: string) => void | - | The chosen day as 'YYYY-MM-DD'; '' means none. Controlled or uncontrolled. |
month | string | - | The month shown, "YYYY-MM". Defaults to the chosen day's month, then today's, then the month of `today`. |
onMonthChange | (month: string) => void | - | The month shown, 'YYYY-MM'. |
min | string | - | The earliest and latest day that can be chosen. Other days are shown but cannot be picked. |
max | string | - | Days that cannot be chosen are struck through and aria-disabled; arrows still pass over them. |
isDisabled | (iso: string) => boolean | - | Days that cannot be chosen are struck through and aria-disabled; arrows still pass over them. |
today | string | - | Today, "YYYY-MM-DD". Marked with a ring and the word. Never read from the clock here, so it renders the same on the server. |
firstDay | 'mon' | 'sun' | 'mon' | Where the week starts; the language names are written in. |
locale | string | 'en' | Where the week starts; the language names are written in. |
aria-label | string | - | Names the grid when there is no other label. |
autoFocus | boolean | - | Move focus to the day when it mounts (a calendar opened from a button). |
labels | { previous: string; next: string; today: string } | { previous: 'Previous month', next:… | Button names and the word added to today's name. Pass them translated. |
className | string | - | Extra classes, merged after the component's own. |
Accessibility
| Key | Does |
|---|---|
Tab | Enters the grid on one day (the chosen day, else today) |
Left / Right | A day back or forward, across months |
Up / Down | A week back or forward |
Home / End | The start or the end of the week |
Page Up / Page Down | A month back or forward; with Shift, a year |
Enter / Space | Chooses the day |
The WAI-ARIA date picker grid. The month is announced when it changes; days that cannot be chosen stay focusable, say so, and are struck through.
Accessibility