16
packages/react/src/stories/popup.stories.tsx
Normal file
16
packages/react/src/stories/popup.stories.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import { Popup } from '../Popup'
|
||||
import { open, toggle } from '@typebot.io/js'
|
||||
|
||||
export const Default = () => {
|
||||
return (
|
||||
<>
|
||||
<button onClick={open}>Open modal</button>
|
||||
<button onClick={toggle}>Toggle modal</button>
|
||||
<Popup
|
||||
typebotId="ladleTypebot"
|
||||
apiHost="http://localhost:3001"
|
||||
autoShowDelay={3000}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user