Skip to content

brendan-defi/onchainkit-wallet-island-demo

Repository files navigation

OnchainKit Wallet Island Demo

wi-demo

This demo application showcases the integration of @coinbase/onchainkit Wallet Island component in a Next.js application.

It demonstrates how to implement wallet connectivity, user identity display, and wallet-related UI components using OnchainKit's pre-built components.

Features

  • 🎨 Elegant, minimalist design with prebuilt themes
  • 🔗 Seamless wallet integration and wallet balance
  • 🌓 Dark mode optimized
  • ⚡️ Built with Next.js for optimal performance
  • 📱 Fully responsive design
  • 🎭 Beautiful animations and transitions

Tech Stack

Getting Started

Prerequisites

  • Node.js 18+ installed
  • Package manager (npm, yarn, pnpm, or bun)

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
# or
yarn install
# or
pnpm install
# or
bun install

Development

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Usage Example

The main wallet component implementation can be found in app/WalletDemo.tsx:

import { Wallet, ConnectWallet } from "@coinbase/onchainkit/wallet";
import { useAccount } from "wagmi";

export function WalletDemo() {
  const { address } = useAccount();
  return (
    <Wallet>
      <ConnectWallet text="Connect Wallet">
        {/* Wallet implementation */}
      </ConnectWallet>
      {/* Additional wallet components */}
    </Wallet>
  );
}

Learn More

License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published