Skip to content

Commit c31ebea

Browse files
committed
updates to sdk intro + redirects
1 parent 558a954 commit c31ebea

File tree

15 files changed

+125
-80
lines changed

15 files changed

+125
-80
lines changed

sdk-sidebar.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ const sidebar = {
1313
id: "index"
1414
},
1515
items: [
16-
'introduction/supported-platforms',
17-
'introduction/supported-networks',
1816
'introduction/llm-prompt',
1917
],
2018
},
@@ -67,7 +65,10 @@ const sidebar = {
6765
label: 'Reference',
6866
collapsible: false,
6967
collapsed: false,
70-
items: ['reference/sdk-options'],
68+
items: [
69+
'reference/supported-platforms',
70+
'reference/sdk-options',
71+
],
7172
},
7273
],
7374
}

sdk/connect/javascript-dynamic.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
sidebar_label: Dynamic SDK
33
description: Quickstart guide for using MetaMask SDK and Dynamic SDK.
44
toc_max_heading_level: 2
5+
keywords: [connect, MetaMask, Dynamic, SDK, dapp]
56
---
67

78
# Connect to MetaMask using Dynamic SDK
@@ -19,7 +20,7 @@ You can set up the SDKs in the following ways:
1920

2021
Features include:
2122

22-
- **MetaMask SDK built into Dynamic** - Use MetaMask SDK features directly within the Dynamic SDK.
23+
- **MetaMask SDK built into Dynamic** - Use MetaMask SDK features directly within Dynamic SDK.
2324
- **Wallet connection** - Connect to MetaMask wallet with enhanced features.
2425
- **Mobile experience** - Optimized for both desktop and mobile users.
2526
- **TypeScript support** - Full type safety and modern development experience.

sdk/connect/javascript-wagmi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
description: Quickstart guide for using the SDK with a JavaScript and Wagmi dapp.
33
toc_max_heading_level: 2
44
sidebar_label: JavaScript + Wagmi (recommended)
5+
keywords: [connect, MetaMask, JavaScript, Wagmi, SDK, dapp]
56
---
67

78
# Connect to MetaMask using JavaScript + Wagmi

sdk/connect/javascript-web3auth.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
sidebar_label: Web3Auth SDK
33
description: Quickstart guide for using MetaMask SDK and Web3Auth SDK.
44
toc_max_heading_level: 2
5+
keywords: [connect, MetaMask, Web3Auth, SDK, dapp]
56
---
67

78
# Connect to MetaMask using Web3Auth SDK
@@ -18,7 +19,7 @@ You can set up the SDKs in the following ways:
1819

1920
Features include:
2021

21-
- **MetaMask SDK built into Web3Auth** - Use MetaMask SDK features directly within the Web3Auth SDK.
22+
- **MetaMask SDK built into Web3Auth** - Use MetaMask SDK features directly within Web3Auth SDK.
2223
- **Web3Auth social login** - Enable users to sign in with an email or social media account.
2324
- **Wallet connection** - Connect to MetaMask wallet with enhanced features.
2425
- **Mobile experience** - Optimized for both desktop and mobile users.

sdk/connect/javascript.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: Quickstart guide for using the SDK with a JavaScript dapp.
33
sidebar_label: JavaScript
4+
keywords: [connect, MetaMask, JavaScript, SDK, dapp]
45
---
56

67
import Tabs from "@theme/Tabs";

sdk/connect/react-native.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: Quickstart guide for using the SDK with a React Native dapp.
33
sidebar_label: React Native
4+
keywords: [connect, MetaMask, React, Native, SDK, dapp]
45
---
56

67
import Tabs from "@theme/Tabs";

sdk/index.md

Lines changed: 77 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,89 @@
11
---
22
slug: /
33
description: Introduction page for MetaMask SDK documentation.
4+
keywords: [connect, MetaMask, SDK, integrate, dapp]
45
---
56

6-
# Build onchain dapps with MetaMask SDK
7+
import Button from '@site/src/components/elements/buttons/button'
8+
import CardList from '@site/src/components/CardList'
79

8-
MetaMask SDK is a toolkit that allows you to build onchain dapps.
9-
With the SDK, you can:
10+
# Seamlessly connect to MetaMask using the SDK
1011

11-
- Authenticate users.
12-
- Manage wallet states.
13-
- Handle transactions.
14-
- Interact with contracts.
12+
MetaMask SDK is a toolkit that enables a fast, reliable, and seamless connection from your dapp to the MetaMask extension and MetaMask Mobile.
13+
With the SDK, you can easily onboard users and interact with their accounts on desktop or mobile, across all EVM L1/L2 networks.
1514

16-
[Get started by connecting to MetaMask.](connect/javascript-wagmi.md)
15+
<p align="center">
16+
<Button
17+
as="a"
18+
href="connect/javascript-wagmi"
19+
label="Get started with the SDK"
20+
icon="arrow-right"
21+
style={{
22+
'--button-color-hover': 'var(--general-black)',
23+
'--button-text-color-hover': 'var(--general-white)',
24+
}}
25+
/>
26+
</p>
1727

18-
:::tip Build embedded wallet experiences that work seamlessly with MetaMask
19-
Introducing our latest [Embedded Wallets SDK](https://web3auth.io/docs) (previously Web3Auth), you can now onboard users
20-
instantly and design seamless onchain experiences with social logins, passkeys and more.
21-
:::
22-
23-
## Why use the SDK?
24-
25-
The benefits of using MetaMask SDK include the following:
28+
## Supported platforms and libraries
2629

27-
- It works on multiple dapp platforms:
28-
- Web dapps - Connect to the MetaMask browser extension or use QR codes to connect to MetaMask Mobile.
29-
- Mobile dapps - Use deeplinks to connect to MetaMask Mobile.
30-
- It works with all EVM-compatible L1/L2 networks.
31-
- It handles onboarding of users.
32-
- It is battle tested with millions of users on MetaMask.
30+
You can get started with the SDK on the following dapp platforms or third-party libraries:
3331

34-
## Where do I start?
32+
<CardList
33+
items={[
34+
{
35+
href: 'connect/javascript-wagmi',
36+
title: 'JavaScript + Wagmi (recommended)',
37+
description: 'Use the CLI or template to set up the SDK in a Next.js and Wagmi dapp.',
38+
},
39+
{
40+
href: 'connect/javascript',
41+
title: 'JavaScript',
42+
description: 'Set up the SDK in a JavaScript dapp.',
43+
},
44+
{
45+
href: 'connect/javascript-dynamic',
46+
title: 'Dynamic SDK',
47+
description: 'Use the CLI or template to set up Dynamic SDK in a Next.js dapp. Use MetaMask SDK features with Dynamic.',
48+
},
49+
{
50+
href: 'connect/javascript-web3auth',
51+
title: 'Web3Auth SDK',
52+
description: 'Use the CLI or template to set up Web3Auth SDK in a Next.js dapp. Use MetaMask SDK features with Web3Auth.',
53+
},
54+
{
55+
href: 'connect/react-native',
56+
title: 'React Native',
57+
description: 'Set up the SDK in a React Native or Expo dapp.',
58+
},
59+
{
60+
href: 'https://docs.reown.com/appkit/overview',
61+
title: 'Reown AppKit',
62+
description: 'Use SDK features with Reown AppKit.',
63+
buttonIcon: 'external-arrow',
64+
},
65+
{
66+
href: 'https://www.rainbowkit.com',
67+
title: 'RainbowKit',
68+
description: 'Use SDK features with RainbowKit.',
69+
buttonIcon: 'external-arrow',
70+
},
71+
{
72+
href: 'https://onboard.blocknative.com',
73+
title: 'Web3-Onboard',
74+
description: 'Use SDK features with Web3-Onboard.',
75+
buttonIcon: 'external-arrow',
76+
},
77+
{
78+
href: 'https://docs.family.co/connectkit',
79+
title: 'ConnectKit',
80+
description: 'Use SDK features with ConnectKit.',
81+
buttonIcon: 'external-arrow',
82+
},
83+
]}
84+
/>
3585

36-
You can get started by connecting to MetaMask with the following dapp platforms:
37-
38-
- [JavaScript + Wagmi (recommended)](connect/javascript-wagmi.md)
39-
- [JavaScript](connect/javascript.md)
40-
- [Dynamic SDK](connect/javascript-dynamic.md)
41-
- [Web3Auth SDK](connect/javascript-web3auth.md)
42-
- [React Native](connect/react-native.md)
86+
:::tip Build embedded wallet experiences that work seamlessly with MetaMask
87+
Introducing our latest [Embedded Wallets SDK](connect/javascript-web3auth.md) (Web3Auth), you can now onboard users
88+
instantly and design seamless onchain experiences with social logins, passkeys and more.
89+
:::

sdk/introduction/supported-networks.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/components/CardList/CardListItem/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ export interface CardItem {
1515
description?: ReactNode
1616
href?: string
1717
flaskOnly?: boolean
18+
buttonIcon?: 'arrow-right' | 'external-arrow'
1819
}
1920

2021
interface CardListItemProps {
2122
item: CardItem
2223
}
2324

2425
export default function CardListItem({ item }: CardListItemProps) {
25-
const { title, description, href, flaskOnly } = item
26+
const { title, description, href, flaskOnly, buttonIcon = 'arrow-right' } = item
2627
const [isHovered, setIsHovered] = useState(false)
2728
const { colorMode } = useColorMode()
2829
const [theme, setTheme] = useState('')
@@ -66,7 +67,7 @@ export default function CardListItem({ item }: CardListItemProps) {
6667
as="button"
6768
label={false}
6869
type={theme === 'dark' ? 'secondary' : 'primary'}
69-
icon="arrow-right"
70+
icon={buttonIcon}
7071
style={
7172
theme === 'dark'
7273
? {

0 commit comments

Comments
 (0)