Wallet
The Wallet component is an embedded wallet that shows a user's balance and token holdings.
to see the Wallet component
Installation
1. Install Dependencies
Wallet requires Solana Wallet Adapter and must be wrapped in Connection and Wallet provider components.
2. Install shadcn/ui sheet component
Use shadcn/ui CLI or manually install the shadcn/ui sheet component.
3. Install SolanaUI Avatar
The Wallet component requires the Avatar
component. Copy the code below to src/components/sol/avatar.tsx
.
4. Install SolanaUI TokenIcon
The Wallet component requires the TokenIcon
component. Copy the code below to src/components/sol/token-icon.tsx
.
4. Install SolanaUI Wallet
Copy the code below to src/components/sol/wallet.tsx
.
5. Use Wallet
Import the Wallet
component and use it in your app.