Skip to content

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.

import { Button, Frog } from 'frog'
 
export const app = new Frog({ title: 'Frog Frame' })
 
app.composerAction('/', (c) => {
    return c.res({
      title: 'My Composer Action',
      url: 'https://example.com'
    })
  },
  { /* options */ }
)

url

  • Type: string

Composer Form URL. Must be http:// or https:// protocol.

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 */ }
)