We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34252ee commit 301e28dCopy full SHA for 301e28d
site/pages/concepts/mini-apps.mdx
@@ -28,12 +28,24 @@ import { Frog, Button } from 'frog'
28
29
export const app = new Frog({ title: 'Frog Frame' })
30
31
-app.frame((c) => {
32
- return c.res({
33
- image: '...',
34
- intents: [<Button.MiniApp href="https://link-to-my-mini-app"/>]
+app
+ .frame((c) => {
+ return c.res({
+ image: '...',
35
+ intents: [<Button.MiniApp action="/miniapp"/>]
36
+ })
37
})
-})
38
+ // or .composerAction
39
+ .miniApp(
40
+ "/miniapp",
41
+ (c) => c.res({ title: "Mini-App", url: `${process.env.VERCEL_URL ?? 'http://localhost:3000'}/your-mini-app-page` }),
42
+ {
43
+ name: "Mini-App",
44
+ description: "Mini-App",
45
+ imageUrl: "",
46
+ icon: "log",
47
+ },
48
+ );
49
```
50
51
You can also add `prompt` param to the props to hint the App Client to render the Mini-App without opening
0 commit comments