Skip to content

Button.Reset

Resets the frame back to the initial/start URL.

Import

import { Button } from 'frog'

Usage

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