Calendar
An always-visible locale-aware calendar with Ark-backed grid keyboard interaction.@gemologic/sheen-date · date and timePlayground
This example has no scalar controls. Its validated source remains interactive below.
Deployment date
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
30 | 31 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
Jan | Feb | Mar | Apr |
May | Jun | Jul | Aug |
Sep | Oct | Nov | Dec |
2020 | 2021 | 2022 | 2023 |
2024 | 2025 | 2026 | 2027 |
2028 | 2029 |
<Calendar label="Deployment date" name="deploymentDate" defaultValue={createCalendarDate(2026, 9, 8)} defaultVisibleDate={createCalendarDate(2026, 9, 1)} />Variant matrix
Deployment date
Deployment date
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
30 | 31 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
Jan | Feb | Mar | Apr |
May | Jun | Jul | Aug |
Sep | Oct | Nov | Dec |
2020 | 2021 | 2022 | 2023 |
2024 | 2025 | 2026 | 2027 |
2028 | 2029 |
Anatomy
- Package
@gemologic/sheen-date- Source
packages/date/src/Calendar.tsx- Tokens
--sheen-color-bg--sheen-color-accent--sheen-color-focus-ring
Accessibility
Role: application calendar gridKeyboard: Arrow keys, PageUp, PageDown, Home, End, Enter, SpaceDo
- Provide defaultVisibleDate for empty SSR output near the application's working date.
Do not
- Do not derive initial visible dates from the browser clock during hydration.
Generated props
| Name | Type | Default | Description |
|---|---|---|---|
label * | string | — | Required visible calendar label. |
value | CalendarDate | null | — | App-owned Sheen CalendarDate, or null for no selection. |
defaultValue | CalendarDate | null | — | Initial uncontrolled selection. |
onValueChange | (value: CalendarDate | null) => void | — | Receives requested Sheen-owned selection changes. |
minValue | CalendarDate | — | Earliest selectable calendar date. |
maxValue | CalendarDate | — | Latest selectable calendar date. |
isDateUnavailable | (value: CalendarDate) => boolean | — | Marks otherwise in-range dates unavailable using Sheen CalendarDate values. |
defaultVisibleDate | CalendarDate | — | Deterministic initially visible month; empty calendars otherwise use 2000-01-01. |
locale | string | — | Explicit BCP 47 locale, defaulting to theme context. |
calendar | string | — | Optional Unicode calendar identifier affecting presentation and interaction, not the stored ISO date. |
name | string | — | Native form field name for the YYYY-MM-DD projection. |
form | string | — | Optional external form owner. |
required | boolean | false | Marks the calendar selection required for accessible semantics. |
disabled | boolean | false | Prevents focus and selection. |
readOnly | boolean | false | Allows inspection while rejecting selection changes. |