Event Details

An event's details beside it, and the form that writes one: times and zone, repeat, guests, place, video link, color and notes.

December 2026

EST
All day
9:00 AM

Monday, December 7, 2026

All day
9:00 AM

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/event-details

Usage

import { EventEditor, EventPopover } from "./ui/uicontext/components/schedule/EventDetails.ts"import { type Occurrence, ScheduleEvent } from "./ui/uicontext/components/schedule/Events.ts"
const Message = UiSchema.TaggedEnum({ ClosedDetails: {}, ClickedEdit: {}, SavedEvent: { event: ScheduleEvent }, ClosedEditor: {} })// beside the occurrence a TimeGrid marks as `selected`export const Details = (h: Html.H<typeof Message.Type>, occurrence: Occurrence, event: ScheduleEvent) =>	EventPopover(h, { open: true, occurrence, event, timeZone: "America/New_York", onClose: Message.ClosedDetails(), onEdit: Message.ClickedEdit() })// key it by the event, so a new event starts a fresh draftexport const Editor = (h: Html.H<typeof Message.Type>, event: ScheduleEvent, now: string) =>	EventEditor(h, {		key: event.id,		props: { initial: event, isNew: false, open: true, now },		onEmit: { Saved: ({ event: saved }) => Message.SavedEvent({ event: saved }), RequestedClose: () => Message.ClosedEditor(), RequestedDelete: () => undefined },	})

API reference

EventEditorComponent

Props

EventEditor props
NameTypeDescription
initialrequiredScheduleEventThe event as it starts; a new one has the times that were dragged or picked
isNewrequiredbooleanA new event says Add; an existing one Save, and can be deleted
openrequiredbooleanWhether the dialog shows
nowrequiredstringThe app's current instant (ISO)
peopleGuest[]People to offer as guests
videoLinkstringA link a new video call gets, such as your meeting service's; a placeholder when left out
localestring—
errorstring | nullThe app's message when saving failed

Events

EventEditor events
EventPayloadDescription
Saved{ event: ScheduleEvent }The finished event: write it, then stop rendering the editor
RequestedClose{}—
RequestedDelete{ event: string }—

EventPopoverView function

Options

EventPopover options
NameTypeDescription
openrequiredbooleanWhether it shows; the caller keeps it
occurrencerequiredOccurrenceThe occurrence shown: the popover sits beside its block on the TimeGrid
eventrequiredScheduleEventThe event it belongs to, for its repeat, guests and notes
timeZonerequiredstringThe zone times read in: the reader's
localestring—
hour12boolean—
onCloserequiredMessageEscape, a press outside, or the close button
onEditMessage—
onDeleteMessage—
extraView.ChildrenMore actions before Edit: "Duplicate", "Copy link"

Source