Embed
component from @versori/embed-react
and use it in your React application.
All of the components and hooks provided will need to be wrapped in the VersoriEmbeddedProvider
component.
VersoriEmbeddedProvider
is a React component that initializes and provides the Versori Embedded Platform client to its children via context. It also allows customization of some default settings and validation messages.
Currently the only default setting is the default integration tile image.
options
(required)InitOptions
orgId
: Your organisation ID.endUserAuth
: Authentication details for the end user, can only be of type jwt
right now.
Must be an object that looks like this:
children
ReactNode
defaults
Partial<VersoriEmbeddedDefaults>
validation
VersoriEmbeddedProviderValidation
VersoriEmbeddedProviderValidation
locale
: A LocaleObject
to customize validation messages. Defaults to:
VersoriEmbeddedProvider
provides the following context to its children:
client
: The initialized PlatformClient
instance.defaults
: The merged default settings.PlatformClient
is not yet initialized, the provider will render a loading spinner centered on the screen.