TextInput
Import
import { TextInput } from 'frog'
Usage
import { Button, Frog } from 'frog'
export const app = new Frog({ title: 'Frog Frame' })
app.frame('/', (c) => {
const { inputText } = c
return c.res({
image: /* ... */,
intents: [
<TextInput placeholder="Enter your fruit..." />,
]
})
})
Props
placeholder (optional)
- Type:
string
The placeholder for the text input.