Overview
MagenX404 includes a beautiful, automatic wallet selection modal that appears when no wallet is specified in the configuration. You can also show it programmatically usingshowWalletModal().
Automatic Modal
The modal appears automatically when you don’t specify a wallet:Wallet Selection Modal
If you don’t provide awallet parameter in the config, a beautiful modal will automatically appear allowing users to select from their installed wallets (Phantom, Solflare, Backpack).
The modal:
- Automatically detects installed wallets
- Shows a user-friendly interface
- Handles wallet selection and cancellation
- Works seamlessly with all authentication features
Modal Features
The wallet modal includes:- ✨ Beautiful, modern UI with animations
- 🌙 Dark mode support (automatic)
- 📱 Responsive design
- 🔍 Automatic wallet detection
- ✅ Shows “Installed” badge for detected wallets
- ❌ Handles no wallet found scenario
- 🎨 Framework-agnostic (works with React, Vue, vanilla JS, etc.)
Example: Custom Wallet Selection
Modal Styling
The modal automatically adapts to your site’s theme and supports dark mode. It’s designed to be unobtrusive and user-friendly.The modal is created dynamically and doesn’t require any additional CSS or
styling. It works out of the box.