Calendar
stableA standalone calendar for selecting dates.
Basic usage
June 2026
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
Examples
Range selection
Switch to mode="range" to allow selecting a start and end date.
June 2026
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
Selection modes
Calendar supports single, multiple and range selection plus date bounds.
May 2026
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
May 2026
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
Features
- Single / range / multiple.
- Keyboard navigation.
Installation
bash
pnpm dlx structyl add calendarAPI Reference
Calendar
A standalone calendar supporting single, range and multiple selection.
| Prop | Type | Default |
|---|---|---|
| mode | 'single' | 'range' | 'multiple'Selection mode. | 'single' |
| selected | Date | Date[] | { from, to }Controlled selection. | — |
| onSelect | (value) => voidCalled when the selection changes. | — |
| month | DateControlled displayed month. | — |
| minDate | DateEarliest selectable date. | — |
| maxDate | DateLatest selectable date. | — |
| weekStartsOn | numberFirst day of the week (0 = Sunday). | 0 |
| showOutsideDays | booleanRender days from adjacent months. | true |