mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-16 21:10:26 +08:00
| .. | ||
| __mocks__ | ||
| examples | ||
| src | ||
| tests | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .npmignore | ||
| jest.config.js | ||
| package.json | ||
| README.md | ||
| rollup.config.js | ||
| tsconfig.json | ||
Typebot JS library
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',
})