Skip to content

Commit 83a0e59

Browse files
committed
add changes to docs
1 parent 48a4875 commit 83a0e59

11 files changed

Lines changed: 163 additions & 10 deletions

File tree

docs/base-account/examples/coin-a-joke-app.mdx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,29 @@ git clone https://github.com/base/demos.git
8888

8989
# Navigate to the app
9090
cd demos/smart-wallet/coin-your-joke
91+
```
92+
93+
Install dependencies:
9194

92-
# Install dependencies
95+
<CodeGroup>
96+
```bash npm
97+
npm install
98+
```
99+
100+
```bash pnpm
93101
pnpm install
102+
```
94103

104+
```bash yarn
105+
yarn install
106+
```
107+
108+
```bash bun
109+
bun install
110+
```
111+
</CodeGroup>
112+
113+
```bash Terminal
95114
# Copy the environment variables
96115
cp .env.example .env
97116
```

docs/base-account/framework-integrations/nextjs-with-wagmi.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,24 @@ By the end of this guide, you will:
2121

2222
After [creating a new Next.js project](https://nextjs.org/docs/app/getting-started/installation), install the required dependencies:
2323

24-
```bash
24+
<CodeGroup>
25+
```bash npm
2526
npm install wagmi viem @base-org/account
2627
```
2728

29+
```bash pnpm
30+
pnpm add wagmi viem @base-org/account
31+
```
32+
33+
```bash yarn
34+
yarn add wagmi viem @base-org/account
35+
```
36+
37+
```bash bun
38+
bun add wagmi viem @base-org/account
39+
```
40+
</CodeGroup>
41+
2842
<Tip>
2943
You can also use the command line `npm create wagmi@latest` to create a new full Wagmi project.
3044
</Tip>

docs/base-account/guides/accept-payments.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function Checkout() {
112112
}
113113
```
114114

115-
See full props and theming options in the [Buttons & Branding guide](/docs/base-account/reference/ui-elements/buttons-and-branding).
115+
See full props and theming options in the [Button Reference](/base-account/reference/ui-elements/base-pay-button) and [Brand Guidelines](/base-account/reference/ui-elements/brand-guidelines).
116116

117117
## Test on Base Sepolia
118118

docs/base-account/guides/authenticate-users.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,25 @@ app.post('/auth/verify', async (req, res) => {
142142
app.listen(3001, () => console.log('Auth server listening on :3001'));
143143
```
144144

145+
## Add the Base Sign In With Base Button
146+
147+
Use the pre-built component for a native look-and-feel:
148+
149+
```tsx title="Checkout.tsx"
150+
import { SignInWithBaseButton } from '@base-org/account-ui/react';
151+
152+
export function Checkout() {
153+
return (
154+
<SignInWithBaseButton
155+
colorScheme="light"
156+
onClick={() => signInWithBase()}
157+
/>
158+
);
159+
}
160+
```
161+
162+
See full props and theming options in the [Button Reference](/base-account/reference/ui-elements/sign-in-with-base-button) and [Brand Guidelines](/base-account/reference/ui-elements/brand-guidelines).
163+
145164
import PolicyBanner from "/snippets/PolicyBanner.mdx";
146165

147166
<PolicyBanner />

docs/base-account/guides/sub-accounts/add-sub-accounts-to-onchainkit.mdx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,27 @@ npm @coinbase/wallet-sdk@canary install
5757

5858
Make sure to delete the `node_modules` folder and `package-lock.json` file before re-installing the dependencies after running the command above.
5959

60-
```bash
60+
<CodeGroup>
61+
```bash npm
6162
rm -rf node_modules package-lock.json
6263
npm install
6364
```
65+
66+
```bash pnpm
67+
rm -rf node_modules pnpm-lock.yaml
68+
pnpm install
69+
```
70+
71+
```bash yarn
72+
rm -rf node_modules yarn.lock
73+
yarn install
74+
```
75+
76+
```bash bun
77+
rm -rf node_modules bun.lockb
78+
bun install
79+
```
80+
</CodeGroup>
6481
</Warning>
6582

6683
<Check>

docs/base-account/improve-ux/batch-transactions.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,24 @@ You can submit batch transactions by using the `wallet_sendCalls` RPC method, de
1010

1111
Install the Base Account SDK:
1212

13-
```bash
13+
<CodeGroup>
14+
```bash npm
1415
npm install @base-org/account
1516
```
1617

18+
```bash pnpm
19+
pnpm add @base-org/account
20+
```
21+
22+
```bash yarn
23+
yarn add @base-org/account
24+
```
25+
26+
```bash bun
27+
bun add @base-org/account
28+
```
29+
</CodeGroup>
30+
1731
## Setup
1832

1933
### Initialize the SDK

docs/base-account/improve-ux/sponsor-gas/paymasters.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,24 @@ the [Base Go Gasless page](/cookbook/go-gasless).
8282

8383
### Installation
8484

85-
```bash
85+
<CodeGroup>
86+
```bash npm
8687
npm install @base-org/account
8788
```
8889

90+
```bash pnpm
91+
pnpm add @base-org/account
92+
```
93+
94+
```bash yarn
95+
yarn add @base-org/account
96+
```
97+
98+
```bash bun
99+
bun add @base-org/account
100+
```
101+
</CodeGroup>
102+
89103
### Initialize the SDK
90104

91105
```tsx

docs/base-account/improve-ux/sub-accounts.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,24 @@ If you would like to see a live demo of Sub Accounts in action, check out our [S
3131

3232
Install the Base Account SDK:
3333

34-
```bash
34+
<CodeGroup>
35+
```bash npm
3536
npm install @base-org/account
3637
```
3738

39+
```bash pnpm
40+
pnpm add @base-org/account
41+
```
42+
43+
```bash yarn
44+
yarn add @base-org/account
45+
```
46+
47+
```bash bun
48+
bun add @base-org/account
49+
```
50+
</CodeGroup>
51+
3852
## Basic Setup
3953

4054
### Initialize the SDK

docs/base-account/quickstart/web.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,24 @@ This quick-start shows the **minimum** code required to add Sign in with Base an
66

77
## 1. Install the SDK
88

9-
```bash
9+
<CodeGroup>
10+
```bash npm
1011
npm install @base-org/account
1112
```
1213

14+
```bash pnpm
15+
pnpm add @base-org/account
16+
```
17+
18+
```bash yarn
19+
yarn add @base-org/account
20+
```
21+
22+
```bash bun
23+
bun add @base-org/account
24+
```
25+
</CodeGroup>
26+
1327
If you prefer a CDN import, you can skip the install step and replace the `import` line below with:
1428

1529
```html

docs/base-account/reference/ui-elements/base-pay-button.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,24 @@ If you intend on using the BasePayButton, please follow the [Brand Guidelines](/
1313

1414
## Installation
1515

16-
```bash
16+
<CodeGroup>
17+
```bash npm
1718
npm install @base-org/account-ui
1819
```
1920

21+
```bash pnpm
22+
pnpm add @base-org/account-ui
23+
```
24+
25+
```bash yarn
26+
yarn add @base-org/account-ui
27+
```
28+
29+
```bash bun
30+
bun add @base-org/account-ui
31+
```
32+
</CodeGroup>
33+
2034
## Basic Usage
2135

2236
```tsx

0 commit comments

Comments
 (0)