Skip to content

NylasScheduling component

The NylasScheduling component displays a scheduling widget that allows users to schedule meetings with Nylas.

NamebookingInfo
DescriptionAllows the bookingInfo object to be passed to the Scheduler UI for direct booking event creation. When used with timeslotConfirmedHandler, it bypasses the additional data page and immediately invokes the handler after booking.
TypeNylasSchedulerBookingData
NamecancelBookingRef
DescriptionBooking reference required for the cancellation flow.
Typestring
NameclientId
DescriptionThe application ID associated with the public Configuration object. This is used in conjunction with the slug. When the configurationId is not provided, the slug and clientId are used to make requests to the Scheduler API. If the configurationId is provided, this prop is ignored.
Typestring
NameconfigurationId
DescriptionThe Configuration ID. This should be passed in when using a public Configuration, in which case the sessionId is not required.
Typestring
NamedefaultSchedulerState
DescriptionThe default Scheduler store state. Used to set the initial state of the Scheduler store.
TypePartial<NylasSchedulerStoreState>
NameenableUserFeedback
Typeboolean
Defaulttrue
NameeventOverrides
DescriptionAn easy way to override the default function of the event emitter. An example of this is the timeslotConfirmed event. By default, this event sets the Scheduler store state for showBookingForm to true, which shows the booking form. However, if you want to override this behavior, you can pass in the eventOverride prop: <nylas-scheduling eventOverride={{“timeslotConfirmed”: (event, nylasConnector) => { console.log(“Timeslot confirmed event fired!”); } }} />.
TypeSchedulerEventOverride
Default{}
Namehour12
Typeboolean | undefined
NameisLoading
DescriptionThe loading state. This is used to set the loading state for Scheduler when fetching data.
Typeboolean
Namelocalization
DescriptionAllows you to override the default localization strings for each language. Nylas Scheduling Pages currently support the following language codes: en, es, fr, de, sv, zh, ja, nl.
TypePartial<Record<LANGUAGE_CODE, Locale>>
Namemode
DescriptionUsed to set the mode for Scheduler. The mode can be either app (used to show the default Nylas Scheduler UI) or composable (used to show the composable Nylas Scheduler UI).
Typeapp | composable
Defaultapp
NamenylasBranding
DescriptionWhen false, hides the Nylas branding.
Typeboolean
Defaulttrue
NameorganizerConfirmationBookingRef
DescriptionBooking reference required for the manual confirmation flow.
Typestring
NamerescheduleBookingRef
DescriptionBooking reference required for rescheduling flow.
Typestring
NameschedulerApiUrl
DescriptionThe URL for the Nylas Scheduler API (staging or production URL).
Typestring
Defaulthttps://api.us.nylas.com
NamesessionId
DescriptionThe session ID for the Scheduler. This is used to authenticate the user.
Typestring
NameshowNotification
Typeboolean
Defaulttrue
Nameslug
DescriptionThe slug of the public Configuration used for Scheduler. This is used in conjunction with the clientId. When the configurationId is not provided, the slug and clientId are used to make requests to the Scheduler API. If the configurationId is provided, this prop is ignored.
Typestring
NamethemeConfig
DescriptionUsed to automatically generate a theme with color palette and CSS variables to customize the look and feel of the Scheduler.
TypeThemeConfig
EventDescription
bookedEventInfoTriggered on successful booking request. Emits the event data.
bookingRefExtractedTriggered if either the rescheduleBookingRef or cancelBookingRef or organizerConfirmationBookingRef prop is supplied and the component has been attached to the DOM. Emits the configurationId and bookingId derived from the rescheduleBookingRef or cancelBookingRef or organizerConfirmationBookingRef. Subscribe to this event to obtain the extracted configurationId, which is necessary to generate the sessionID for Configurations that are not public.
configSettingsLoaded
initFired when the provider is initialized. It can be used to set the initial state of the provider, or to prevent the provider from firing some default behavior.
nylasSchedulerError
nylasSchedulerInfo
schedulerDidLoadFired when the Scheduler Component enters componentDidLoad lifecycle.
schedulerWillLoadFired when the Scheduler Component enters componentWillLoad lifecycle.
PartDescription
additional-data-page
booked-event-page
cancel-flow-page
cancelled-event-page
confirmed-event-page
manual-confirmation-page
select-date-page
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.
PartDescription
nbfThe booking form host.
nbf__button-ghostThe ghost button.
nbf__button-outlineThe outline button.
nbf__button-primaryThe primary button.
nbf__checkbox-componentThe checkbox component.
nbf__dropdownThe dropdown component.
nbf__dropdown-buttonThe dropdown button.
nbf__dropdown-contentThe dropdown content.
nbf__input-textfieldThe input textfield.
nbf__input-wrapperThe input wrapper.
nbf__radio-button-groupThe radio button group.
nbf__textarea-componentThe text area component.
PartDescription
ncbfThe cancel booking form container.
ncbf__button-ctaThe cancel booking form CTA button.
ncbf__button-outlineThe cancel booking form outline button.
ncbf__cardThe cancel booking form card.
ncbf__descriptionThe description of the cancel booking form.
ncbf__iconThe calendar icon.
ncbf__reason-textareaThe reason text area.
ncbf__titleThe title of the cancel booking form.
PartDescription
ncecThe cancelled event card host.
ncec__button-outlineThe close button CTA.
ncec__cardThe cancelled event card.
ncec__descriptionThe description of the cancelled event card.
ncec__iconThe calendar icon.
ncec__titleThe title of the cancelled event card.
PartDescription
ndpThe date picker host.
ndp__dateThe date.
ndp__date--current-dayThe current day.
ndp__date--current-monthThe dates in the current month.
ndp__date--disabledThe disabled dates.
ndp__date--selectedThe selected date.
ndp__dayThe day.
ndp__month-buttonThe month button.
ndp__month-headerThe month header.
ndp__titleThe title.
PartDescription
nlsThe locale switch container.
nls__languageThe language select container.
nls__language-drop-buttonThe language dropdown button.
nls__language-drop-contentThe language dropdown content.
nls__language-drop-labelThe language dropdown label.
nls__language-dropdownThe language dropdown.
nls__timezoneThe timezone select container.
nls__timezone-drop-buttonThe timezone dropdown button.
nls__timezone-drop-button-selected-labelThe timezone dropdown button selected label.
nls__timezone-drop-contentThe timezone dropdown content.
nls__timezone-drop-labelThe timezone dropdown label.
nls__timezone-dropdownThe timezone dropdown.
PartDescription
ns_additional-data-pageThe additional data page.
ns_booked-event-pageThe booked event page.
ns_left-panelThe left panel.
ns_left-panel__wrapperThe left panel wrapper.
ns_rescheduleThe reschedule.
ns_right-panelThe right panel.
ns_right-panel__calendar-iconThe right panel calendar icon.
ns_right-panel__selected-dateThe right panel selected date.
ns_right-panel__titleThe right panel title.
ns_select-date-pageThe select date page.
PartDescription
nsecThe selected event card component.
nsec__cardThe card component.
nsec__dateThe date selected.
nsec__iconThe calendar icon.
nsec__timeThe time slot selected.
PartDescription
ntpThe time slot picker component.
ntp__button-primaryThe time slot picker CTA.
ntp__timeslotThe time slot button.
ntp__timeslot--selectedThe selected time slot button.