Calendar
Calendar
Section titled “Calendar”<ax-calendar> is an inline date calendar supporting single, range, and multiple selection, with
min/max bounds, custom disabled-date predicates, and full keyboard navigation. It’s a Pro
component and self-gates with a PRO watermark until a valid license is provided.
Import
Section titled “Import”import { AxCalendarComponent, type CalendarMode, type CalendarValue, type DateRange, type WeekDay,} from '@axisui-ng/forms';<ax-calendar [(value)]="date" mode="single" [min]="today" />
<!-- range selection, week starts Monday --><ax-calendar [(value)]="range" mode="range" [weekStartsOn]="1" />date: CalendarValue = null; // Date when mode="single"range: CalendarValue = { start: null, end: null }; // DateRange when mode="range"Inputs & models
Section titled “Inputs & models”| Input | Type | Default | Notes |
|---|---|---|---|
value | model<CalendarValue> | null | Date (single), DateRange { start, end } (range), or Date[] (multiple). |
mode | CalendarMode ('single' | 'range' | 'multiple') | 'single' | Selection behaviour. |
min | Date | null | null | Inclusive lower bound. |
max | Date | null | null | Inclusive upper bound. |
disabledDates | ((d: Date) => boolean) | null | null | Extra per-day disable predicate. |
weekStartsOn | WeekDay (0–6) | 0 | First weekday (0 = Sunday). |
locale | string | undefined | undefined | BCP-47 locale for month/day names (browser default when unset). |
Accessibility
Section titled “Accessibility”A role="grid" of day cells with a roving tabindex: arrows move by day, PageUp / PageDown by
month, Home / End to row ends, Enter / Space select. Disabled days are skipped.
Previous/next month buttons are labelled.
License
Section titled “License”Pro component — see ProWatermark for how the watermark/gating works.
Storybook
Section titled “Storybook”Interactive examples live in Storybook under Pro / Calendar. Run pnpm storybook to explore them.