EventBlock
Loading example…
EventBlock is part of the Calendar set, imported from @jcsoftdev/ui/calendar.
Import
Section titled “Import”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).
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/calendar/event-block/event-block.tsx