Frog.composerAction Response
The response returned from the .composerAction
handler.
import { Frog } from 'frog'
export const app = new Frog({ title: 'Frog Frame' })
app.composerAction('/', (c) => {
return c.res({
// ...
})
},
{ /* options */ }
)
title
- Type:
string
Title of your action which will be shown in the footer of the Composer Form.
/** @jsxImportSource frog/jsx */
// ---cut---
import { Button, Frog } from 'frog'
export const app = new Frog({ title: 'Frog Frame' })
app.composerAction('/', (c) => {
return c.res({
title: 'My Composr Action',
url: 'https://example.com'
})
},
{ /* options */ }
)
url
- Type:
string
Composer Form URL. Must be http:// or https:// protocol.
/** @jsxImportSource frog/jsx */
// ---cut---
import { Button, Frog } from 'frog'
export const app = new Frog({ title: 'Frog Frame' })
app.composerAction('/', (c) => {
return c.res({
title: 'My Composr Action',
url: 'https://example.com'
})
},
{ /* options */ }
)