Skip to content
Skip to main content

nylas-booked-event-card

The nylas-booked-event-card element displays a confirmation card showing the details of a successfully booked event. It shows the event information, selected time slot, and provides options for cancelling or rescheduling the event.

Namehour12
DescriptionSet whether to use the 12-hour time format.
Typeboolean | undefined
NameselectedLanguage
DescriptionThe selected language.
Typestring
Defaultnavigator.language
NameselectedTimeslot
DescriptionThe selected time slot.
Type{ start_time: Date; end_time: Date; emails?: string[] | undefined; capacity?: number | undefined; event_id?: string | undefined; master_id?: string | undefined; calendar_id?: string | undefined; }
NameselectedTimezone
DescriptionThe selected timezone.
Typestring
DefaultIntl.DateTimeFormat().resolvedOptions().timeZone
NamebookingInfo
DescriptionThe booking information used to book/reschedule the event.
Typeundefined | { primaryParticipant: NylasSchedulerBookingParticipant; startTime?: Date |
undefined; endTime?: Date | undefined; timezone?: string | undefined; language?: string |
undefined; guests?: NylasSchedulerBookingParticipant[] | undefined; additionalFields?:
Record<string, { value: string; type?: string | undefined; readOnly?: boolean | undefined; }>
| undefined; }
NameconfigSettings
DescriptionThe Configuration settings for the Scheduler.
Typeundefined | { configuration_id: string; booking?: { additional_fields: Record<string, string>;
additional_guests: { email: string; name: string; }[]; booking_ref: string; booking_ref_salt:
string; guest: { email: string; name: string; }; timezone: string; email_language: string;
event_data: { location: string; when: { start_time: Date; end_time: Date; end_timezone:
string; start_timezone: string; object: string; }; }; event_organizer: { name: string; email:
string; is_organizer: boolean; }; } | undefined; scheduler: { available_days_in_future:
number; min_cancellation_notice: number; min_booking_notice: number; rescheduling_url?:
string | undefined; cancellation_url?: string | undefined; cancellation_policy?: string
| undefined; hide_additional_guests?: boolean | undefined; hide_cancellation_options?: boolean
| undefined; hide_rescheduling_options?: boolean | undefined; additional_fields?:
Record<string, AdditionalFields> | undefined; confirmation_redirect_url?: string | undefined;
organizer_confirmation_url?: string | undefined; }; organizer: { name: string; email: string;
}; slug: string; appearance: Appearance; booking_type: string; name: string; }
NameeventInfo
DescriptionThe booked event.
Type{ booking_id: string; organizer: { email: string; name: string; is_organizer?: boolean
| undefined; }; title: string; description: string; status: string; event_id: string;
location: string; booking_ref: string; }
NameisLoading
DescriptionThe loading state prop. Used to display loading state when fetching availability.
Typeboolean | undefined
NamerescheduleBookingId
DescriptionThe booking flow type.
Typestring | undefined
NamethemeConfig
DescriptionThe theme configuration.
Typeany
EventDescription
cancelBookedEventValidationErrorFired when an error occurs while cancelling the booking.
cancelBookingButtonClickedCancel booking button clicked event.
rescheduleBookedEventErrorFired when an error occurs while rescheduling the booking.
rescheduleButtonClickedReschedule button clicked event.
PartDescription
nbecThe booked event card host.
nbec__button-outlineThe cancel and reschedule button CTA.
nbec__cancel-ctaThe cancel button CTA.
nbec__cardThe booked event card.
nbec__descriptionThe description of the booked event card.
nbec__reschedule-ctaThe reschedule button CTA.
nbec__titleThe title of the booked event card.