Button
Import
import { Button } from 'frog'
Usage
import { Button, Frog } from 'frog'
export const app = new Frog()
app.frame('/', (c) => {
const { buttonValue } = c
return c.res({
image: /* ... */,
intents: [
<Button value="apple">Apple</Button>,
<Button value="banana">Banana</Button>,
<Button value="mango">Mango</Button>
<Button>Skip</Button>,
]
})
})
Props
value (optional)
- Type:
string
The value of the button. Casts to the buttonValue
context property when clicked.