The following only apply to @stytch/vanilla-js v5 and below. We recommend upgrading to v6 to receive new features by following the upgrade guide.
StytchB2BUIClient and StytchB2BHeadlessClient
If you are using Stytch UI, useStytchB2BUIClient, otherwise use StytchB2BHeadlessClient from @stytch/vanilla-js/b2b/headless for smaller bundle size.
Imports
These imports are only available in@stytch/vanilla-js/b2b in v5 and should be imported separately from @stytch/react or @stytch/nextjs.
B2BProducts- Types for most SDK methods and configuration
Mounting
If you are using React or Next.js, pass theStytchB2BUIClient into <StytchB2BProvider>.
@stytch/vanilla-js, use the mount functions on the client. elementId is a selector matching an element on the page to mount Stytch UI to. Make sure this element is included in your HTML file before the script tag containing your Stytch configuration.
Styles

string
The font family that will apply to all text in the SDK.
boolean
When this value is true, the title and description text will not show in the SDK.
object
The configuration object for the Stytch UI container.
object
The configuration object for colors used in the Stytch UI components.
object
The configuration object for buttons in the Stytch UI component.
object
The configuration object for text inputs in the Stytch UI components.
object
The configuration object for your custom logo.