SolanaUI

Connect Wallet Dialog

The Connect Wallet Dialog component is a dialog window that allows users to connect their wallet via Solana Wallet Adapter.

Installation

1. Install Dependencies

ConnectWalletDialog requires Solana Wallet Adapter and must be wrapped in Connection and Wallet provider components.

2. Install shadcn/ui dialog and button components

Use shadcn/ui CLI or manually install the shadcn/ui dialog and button components.

3. Install SolanaUI Connect Wallet Dialog

Copy the code below to src/components/sol/connect-wallet-dialog.tsx.

4. Use Connect Wallet Dialog

Import the ConnectWalletDialog component and use it in your app.