githubEdit

Options

Options for the Wander Connect SDK

The Wander Connect SDK options include:

  • SDK setup options.

  • Basic customization options.

  • Specific customization options for the 2 different UI components it renders on the screen: the iframe and the button.

  • Event callbacks.

A more complete example will look something like this:

import { WanderEmbedded } from "@wanderapp/embed-sdk";

// Initialize Wander Connect:
const wander = new WanderConnect({
  clientId: "FREE_TRIAL",
  theme: "dark",
  iframe: {
    layout: {
      type: "popup",
      position: "bottom-left",
    }
  },
  button: {
    position: "bottom-left",
    label: true,
  },
  onAuth: () => handleAuth,
});

API

Github: wander-connect.types.tsarrow-up-right

Iframe Customization Options

Iframe Layout

API

Github: wander-connect.types.tsarrow-up-right

Button Customization Options

Button Positioning

You have three methods for custom positioning:

Using Predefined Positions

Using a Parent Element

First, create a container element:

Then reference it in your configuration:

Using Custom Styles

Using External CSS

Define the button with a custom ID:

Then style it with external CSS:

API

Github: wander-connect.types.tsarrow-up-right

Last updated

Was this helpful?