2
0
Files
bot/packages/typebot-js
2022-03-12 08:03:18 +01:00
..
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00
2022-03-10 17:47:59 +01:00

Typebot JS library

NPM Bundle Build Status

Frontend library to embed typebots from Typebot.

Installation

To install, simply run:

npm install typebot-js

yarn add typebot-js

Usage

It exposes 3 functions:

initContainer();
initPopup();
initBubble();

You can configure them directly in the "Share" tab of your typebot.

Example:

import { initContainer } from "typebot-js";

const plausible = initContainer("container-id", {
  publishId: "my-app.com",
});