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.
| Prop | Type | Default | Description |
|---|---|---|---|
product* | Product | — | Undocumented — add TSDoc to the prop in the library. |
host | ProductHost | DEFAULT_PRODUCT_HOST | The space hosting it. Defaults to the same prototype space as the buy-box. |
now | number | EVENT_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()`. |
countdown | CountdownInfo | — | 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. |
attendees | EventGuest[] | DEFAULT_EVENT_ATTENDEES | Guests shown in the avatar stack and the "attending" section. |
invited | EventGuest[] | DEFAULT_EVENT_INVITED | Guests shown in the "invited" section of the guest-list dialog. |
invitedCount | number | — | The number beside "invited" on the summary row. The app hardcoded `60`. |
defaultCancelOpen | boolean | false | Cancel-registration confirmation open on mount. |
defaultGuestListOpen | boolean | false | Guest-list dialog open on mount. |
defaultDescExpanded | boolean | false | Description 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. |
locale | string | "en-US" | Locale for the date line. |
zoomIconSrc | string | VIRTUAL_MEETING_ICON | Icon for a Zoom-flavoured virtual location. |
googleMeetIconSrc | string | MEET_MEETING_ICON | Icon for a Google Meet-flavoured virtual location. |
googleCalendarIconSrc | string | CALENDAR_GOOGLE_ICON | Undocumented — add TSDoc to the prop in the library. |
appleCalendarIconSrc | string | CALENDAR_APPLE_ICON | Undocumented — add TSDoc to the prop in the library. |
outlookIconSrc | string | CALENDAR_OUTLOOK_ICON | Undocumented — add TSDoc to the prop in the library. |
className | string | — | 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.