2
0

(embed) Add new command setInputValue

This commit is contained in:
Baptiste Arnaud
2023-07-15 17:38:12 +02:00
parent 521cb50782
commit be7be7bf7a
14 changed files with 93 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ import {
showPreviewMessage,
hidePreviewMessage,
setPrefilledVariables,
setInputValue,
} from '@typebot.io/js'
import { useState } from 'react'
import { leadGenerationTypebot } from './assets/leadGenerationTypebot'
@@ -23,6 +24,7 @@ export const Default = () => {
<button onClick={() => showPreviewMessage()}>
Show Preview Message
</button>
<button onClick={() => setInputValue('YOOOO!')}>Set input value</button>
<button onClick={hidePreviewMessage}>Close Preview Message</button>
<div>
<p>Predefined name:</p>