Skip to content

Commit

Permalink
docs: optional dependencies required by WalletConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jun 15, 2024
1 parent 154861d commit 5b38355
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,41 @@
sidebar_position: 3
---

import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";

# Connect wallets

Wallets & accounts connection can by managed via [`useWallets`](/api/react/function/useWallets), [`useConnectedWallets`](/api/react/function/useConnectedWallets) & [`useAccounts`](/api/react/function/useAccounts) hooks.

## Install optional dependencies

Additional dependencies are required if you use any of be bellow wallet type.

### [WalletConnect](https://walletconnect.com/)

{/* prettier-ignore-start */}

<Tabs>
<TabItem value="npm" label="npm" default>
```sh
npm add @walletconnect/modal @walletconnect/universal-provider
```
</TabItem>
<TabItem value="yarn" label="yarn">
```sh
yarn add @walletconnect/modal @walletconnect/universal-provider
```
</TabItem>
<TabItem value="pnpm" label="pnpm">
```sh
pnpm add @walletconnect/modal @walletconnect/universal-provider
```
</TabItem>
</Tabs>

{/* prettier-ignore-end */}

## Add wallets to the config

```ts title="config.ts"
Expand Down

0 comments on commit 5b38355

Please sign in to comment.