Skip to content

Commit

Permalink
One more code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
blakezimmerman committed Jul 11, 2024
1 parent 70352b2 commit 995214c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/wallet-adapter-react/docs/BYO-wallet-selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,22 @@ const WalletRow = ({ wallet, onConnect }: WalletItemProps) => (

![shadcn/ui WalletItem](./images/wallet-item-1.png)
![shadcn/ui WalletItem](./images/wallet-item-2.png)

```tsx
import { WalletItem, WalletItemProps } from "@aptos-labs/wallet-adapter-react";

function AptosConnectWalletRow({ wallet, onConnect }: WalletItemProps) {
return (
<WalletItem wallet={wallet} onConnect={onConnect}>
<WalletItem.ConnectButton>
<WalletItem.Icon />
<WalletItem.Name />
</WalletItem.ConnectButton>
</WalletItem>
);
}
```

![shadcn/ui WalletItem](./images/wallet-item-3.png)

#### `WalletItem`
Expand Down

0 comments on commit 995214c

Please sign in to comment.