2
0
Files
bot/packages/typebot-js/README.md

34 lines
477 B
Markdown
Raw Normal View History

# Typebot JS library
Frontend library to embed typebots from [Typebot](https://www.typebot.io/).
## Installation
To install, simply run:
```bash
npm install typebot-js
```
## Usage
It exposes 3 functions:
```ts
initContainer()
initPopup()
initBubble()
```
You can configure them directly in the "Share" tab of your typebot.
Example:
```ts
import { initContainer } from 'typebot-js'
const plausible = initContainer('container-id', {
publishId: 'my-app.com',
})
```