Nylas components are currently in private preview. They might contain bugs or errors, and might change considerably before they reach general availability (GA).
CalendarSync component
The CalendarSync component lets users enable or disable automatic Notetaker scheduling for their calendar events. Typically, you would use it on settings or integration pages where users manage how Notetaker joins meetings.
You need to set up a provider before you can use the CalendarSync component.
Using the CalendarSync component
import React, { useEffect } from"react";
import { CalendarSync, provider as useProvider } from"@nylas/react";
// import '@nylas/react/style.css' // to style the component
functionApp() {
constprovider=useProvider();
useEffect(() => {
// Necessary to set before using the component
provider.setAccessToken("nylas-access-token");
provider.setApiUrl("eu"); // can be "us" or "eu", defaults to "us"
A callback generated when the sync status changes.
autoSync?
boolean
Automatically sync on mount.
className?
string
Additional CSS classes for the container.
SyncEvent
Property
Type
Description
status
'syncing' | 'success' | 'error'
The current sync status.
error?
string
The error message generated if sync fails.
timestamp
string
When the sync event occurred.
calendarSyncStore
This interface describes a Zustand store, an advanced state management React solution. This is intended for advanced use only – the Notetaker components will work without using this store directly.
The interface for the CalendarSync component state store. calendarSyncStore manages all form data and UI state information for the component.