Calendar
A fully accessible, token-driven Calendar component built with strict WAI-ARIA compliance.
tsx
import { Calendar } from '@nofinite/nui';Interactive Preview
Loading preview...
Usage
Basic Example
tsx
import { Calendar } from '@nofinite/nui';
<Calendar />API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
mode | enum | — | — |
value | string | DateRange | — | — |
defaultValue | string | DateRange | — | — |
onChange | ((v: string) => void) | ((v: DateRange) => void) | — | — |
minDate | string | — | — |
maxDate | string | — | — |
locale | string | — | — |
defaultMonth | Date | — | — |
Accessibility & Guidelines
- Semantic Tokens: Built strictly using Nuicss semantic tokens (
bg-surface,text-default,border-subtle,bg-primary). - Keyboard Navigation: Adheres to strict WAI-ARIA standards.
- Screen Reader Support: Includes semantic roles and live regions where appropriate.