oks-ui

Layout & Display

Calendar

Standalone month-grid view with single or range selection, min/max and per-day constraints, a renderDay slot for event markers, and full grid keyboard navigation.

Example

Single + event dots
March 2024
Selected: 2024-03-14
Range, Monday-first
March 2024
2024-03-08 → 2024-03-15

Props

selectionMode

"single" | "range"

Default: single

Single-date or start/end range selection.

onChange

(value) => void

Default:

Fires with null when a single selection is toggled off.

onMonthChange

(month: Date) => void

Default:

Fired when the visible month changes.

minValue / maxValue

string | Date

Default:

Days outside the bound are disabled.

isDateUnavailable

(date: Date) => boolean

Default:

Per-day disable predicate.

isDisabled

boolean

Default: false

Disable the whole calendar.