Skip to content

Commit 6082c77

Browse files
committed
docs: clarify legacy Functions API in Snaps quickstart
1 parent 4035907 commit 6082c77

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

snaps/get-started/quickstart.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ origin, request }) =>
136136
</TabItem>
137137
<TabItem value="Functions" deprecated>
138138

139+
:::note
140+
The **Functions** tab uses the legacy/deprecated Functions-based UI API (`panel()` and `text()` from `@metamask/snaps-sdk`). For new Snaps, use the JSX-based UI shown in the **JSX** tab. The Functions API is maintained for legacy examples.
141+
:::
142+
139143
```ts title="index.ts"
140144
import type { OnRpcRequestHandler } from '@metamask/snaps-sdk'
141145
import { panel, text } from '@metamask/snaps-sdk'

0 commit comments

Comments
 (0)