Calendar API
import { Calendar } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
ariaLabel | string | |
bare | boolean | |
children | React.ReactNode | |
disabled | boolean | |
events | CalendarEvent[] | |
eventsDisplay | 'dots' | 'badges' | 'count' | |
eventsMax | number | |
headless | boolean | |
hideToday | boolean | |
locale | string | |
max | string | |
maxSelections | number | |
min | string | |
month | number | |
onCalendarChange | (detail: CalendarChangeDetail) => void | |
onChange | (detail: CalendarSelectDetail) => void | |
onMonthChange | (detail: CalendarMonthChangeDetail) => void | |
onSelect | (detail: CalendarSelectDetail) => void | |
onValueChange | (value: string) => void | |
outsideClick | 'none' | 'navigate' | 'select' | |
readOnly | boolean | |
selection | 'single' | 'range' | 'multiple' | |
showToday | boolean | |
size | 'sm' | 'md' | 'lg' | |
state | 'idle' | 'loading' | 'error' | 'success' | |
tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | |
translations | Record<string, string> | string | |
value | string | |
variant | 'default' | 'contrast' | |
weekStart | 0 | 1 | 6 | |
year | number |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-calendar>
Calendar renders the ui-calendar custom element from @editora/ui-core, which can also be used without React.
Attributes: aria-label, bare, disabled, events, events-display, events-max, headless, hide-today, locale, max, max-selections, min, month, outside-click, readonly, selection, show-today, size, state, tone, translations, value, variant, week-start, year
Events: change, month-change, select, ui-change, ui-month-change, ui-select