Button.Redirect
Component for the Farcaster Frame post_redirect intent.
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.Redirect location="https://google.com">Google</Button.Redirect>,
    ]
  })
})Props
location
- Type: 
string 
URL to redirect to.