Skip to content

Store

Event registered view

The post-registration event screen — countdown, attendees and calendar links.
Available
Needs mock props

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Event registered view

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
product*Product—Undocumented — add TSDoc to the prop in the library.
hostProductHostDEFAULT_PRODUCT_HOSTThe space hosting it. Defaults to the same prototype space as the buy-box.
nownumberEVENT_VIEW_DEFAULT_NOW"Now", in epoch ms, for the countdown badge. Defaults to the fixed `EVENT_VIEW_DEFAULT_NOW` — a host app passes `Date.now()`.
countdownCountdownInfo—Pin the countdown badge outright, bypassing `now`. Use this for the live / ended / starting-soon stories: it is exact regardless of the viewer's timezone, which a `now`-derived diff is not.
attendeesEventGuest[]DEFAULT_EVENT_ATTENDEESGuests shown in the avatar stack and the "attending" section.
invitedEventGuest[]DEFAULT_EVENT_INVITEDGuests shown in the "invited" section of the guest-list dialog.
invitedCountnumber—The number beside "invited" on the summary row. The app hardcoded `60`.
defaultCancelOpenbooleanfalseCancel-registration confirmation open on mount.
defaultGuestListOpenbooleanfalseGuest-list dialog open on mount.
defaultDescExpandedbooleanfalseDescription expanded past its two-block clamp on mount.
onCancel() => void—The member confirmed cancelling. The app also raised a `sonner` toast.
onAddToCalendar(payload: AddToCalendarPayload) => void—A calendar target was chosen. Nothing opens or downloads on its own.
onJoinMeeting(url: string) => void—"Join meeting" was pressed. Receives the normalised URL.
onGuestSelect(guest: EventGuest) => void—A guest row was chosen.
localestring"en-US"Locale for the date line.
zoomIconSrcstringVIRTUAL_MEETING_ICONIcon for a Zoom-flavoured virtual location.
googleMeetIconSrcstringMEET_MEETING_ICONIcon for a Google Meet-flavoured virtual location.
googleCalendarIconSrcstringCALENDAR_GOOGLE_ICONUndocumented — add TSDoc to the prop in the library.
appleCalendarIconSrcstringCALENDAR_APPLE_ICONUndocumented — add TSDoc to the prop in the library.
outlookIconSrcstringCALENDAR_OUTLOOK_ICONUndocumented — add TSDoc to the prop in the library.
classNamestring—Undocumented — add TSDoc to the prop in the library.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/store/EventRegisteredView.tsx
Portability
Needs its app dependencies replaced by props before it renders in isolation.
Notes
Takes a now value; the countdown and the .ics builders are exported so nothing runs on a live clock.