Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

EventBlock

Open .md
Live preview

Loading example…

EventBlock is part of the Calendar set, imported from @jcsoftdev/ui/calendar.

import { EventBlock } from "@jcsoftdev/ui/calendar";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/calendar/event-block.

<EventBlock event={cita} variant="detailed" />
Prop Type Default Description
event * CalendarEvent
variant "compact" | "detailed" "detailed" “detailed”: time range, title and subtitle. “compact”: one “time title” line.
onOpen ((id: string) => void)
className string
classNames Partial<Record<EventBlockPart, string>> Per-part classes merged with cn; consumer classes win. className still targets the root and is merged last.
intent string
intentKey string

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/calendar/event-block/event-block.tsx