Skip to content

TextInput

Import

import { TextInput } from 'frog'

Usage

import { Button, Frog } from 'frog'
 
export const app = new Frog()
 
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.