Properties Overview
Reactive props accepted by the <Calendar> component. Each entry links to a dedicated page with the full type signature and an example.
Properties
| cellCss | Returns CSS class names applied to grid and month-grid cells |
| children | Sidebar slot rendered next to the calendar grid |
| date | Pivot date that determines the visible range on mount |
| eventContent | Custom React component that replaces the inner markup of each event |
| eventCss | Returns CSS class names applied to event wrappers |
| eventPopup | Custom React component rendered as the event card on event click |
| events | Array of events rendered by the calendar |
| init | One-shot callback that delivers the calendar instance API after store init |
| Properties Overview | All Calendar component props at a glance |
| readonly | Disables drag, create, and the toolbar add-event button |
| recurring | Enables expansion of events with rrule into concrete occurrences |
| toolbar | Configures or hides the toolbar above the calendar grid |
| tooltip | Custom React component rendered as a hover tooltip over events |
| view | Active calendar view id on mount |
| views | Lists which calendar views are available and how each one is configured |
Event handlers
Each on* prop fires when the matching store action runs. Setting a prop is equivalent to calling api.on(action, handler) with a single listener.
For multiple listeners, cancellation, or pre-action interception, use the action API instead - see on and intercept. Each action page below documents both forms (Trigger / Observe / Intercept / Component handler).
Handlers
| Prop | Action | Fires when |
|---|---|---|
onNavigateTo | navigate-to | The calendar jumps to a specific date and/or view. |
onNavigateTime | navigate-time | Prev / Next / Today is dispatched. |
onAddEvent | add-event | A new event is added (drag-create, toolbar button, programmatic). |
onUpdateEvent | update-event | An event is edited (inline edit, drag, resize). |
onDeleteEvent | delete-event | An event is deleted. |
onSelectEvent | select-event | Selection changes (null payload deselects). |
onMoveEvent | move-event | Drag-progress dispatch - no built-in store mutation. |
onFilterEvents | filter-events | A filter predicate is applied or cleared. |
onAction | action | A custom toolbar item or context-menu entry dispatches an action. |
Usage
import { Calendar } from "@svar-ui/react-calendar";
const onAddEvent = ({ event, id }) => {
console.log("added", id, event);
};
<Calendar events={events} onAddEvent={onAddEvent} />
For payload shape and intercept semantics, follow the link to the matching action page.