Button.Link
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.Link href="https://google.com">Google</Button.Link>,
]
})
})
Props
href
- Type:
string
URL to navigate to.