JSPM

@wallet-ui/react

2.2.0-canary-20251120223258
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5454
  • Score
    100M100P100Q118119F
  • License MIT

React components for Wallet UI

Package Exports

  • @wallet-ui/react

Readme

npm npm-downloads
code-style-prettier

@wallet-ui/react

This package provides the official React components and hooks for Wallet UI, a modern, headless UI component library for Solana apps.

Features

  • Provider: A single <WalletUi> provider to easily wrap your application and manage state.
  • Hooks: A complete set of hooks (useWalletUi, useWalletUiSigner, etc.) that give you full control to build custom wallet interactions.
  • Components: Pre-built components like <WalletUiDropdown /> to get you started quickly.
  • Headless: Built with a headless-first philosophy, allowing for maximum customization.

Quick Start

import { createSolanaDevnet, createWalletUiConfig, WalletUi, WalletUiDropdown } from '@wallet-ui/react';
import React from 'react';

// 1. Create your configuration
const config = createWalletUiConfig({
    clusters: [createSolanaDevnet()],
});

// 2. Wrap your app with the provider
function App() {
    return (
        <WalletUi config={config}>
            <YourApp />
        </WalletUi>
    );
}

// 3. Use the components anywhere in your app
function YourApp() {
    return (
        <div>
            <h2>My Awesome App</h2>
            <WalletUiDropdown />
        </div>
    );
}

Documentation

For full documentation, including guides, component references, and hook APIs, please visit wallet-ui.dev/docs/react.