Rendyn

Component library

189 components

Product blocks

Wallet Card

Wallet Card displays supplied account and balance information with optional actions.

Interactive exampleReact Tailwind CSS

Practical React example

Present an account summary with clearly separated wallet action callbacks.

Before you copy and paste

Keep the example in the React rendering environment required by the imported component. Copy components/motion/wallet-card/index.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: clsx, lucide-react, motion, react, tailwind-merge.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Present an account summary with clearly separated wallet action callbacks

// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";

import { useState } from "react";
import { WalletCard } from "@/components/motion/wallet-card";
import { Button } from "@/components/motion/button";

const ACCOUNTS = [
  { id: "main", name: "Main Wallet", address: "0x8f3Cb1a29e4D7c6F1B2a3E9d0C4b5A6f7D8e9C0b" },
  { id: "trading", name: "Trading", address: "0x1a2B3c4D5e6F7a8B9c0D1e2F3a4B5c6D7e8F9a0B" },
  { id: "cold", name: "Cold Storage", address: "0x9F8e7D6c5B4a3E2d1C0b9A8f7E6d5C4b3A2e1F0d" },
];

const RECENT_SEARCHES = ["vitalik.eth", "0xA0b8…6EB4", "Uniswap", "Send to Trading"];

export function WalletCardPreview() {
  const [balance, setBalance] = useState(12480.32);

  return (
    <div className="flex w-full flex-col items-center gap-4 p-6">
      <WalletCard
        accounts={ACCOUNTS}
        balance={balance}
        defaultChange={124.5}
        searchRecent={RECENT_SEARCHES}
        hasNotifications
      />
      <Button
        variant="ghost"
        size="sm"
        onClick={() => setBalance((b) => b + (Math.random() > 0.5 ? 1 : -1) * (50 + Math.random() * 400))}
      >
        Simulate balance change
      </Button>
    </div>
  );
}

Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.

Use authorized account data and format amounts in the intended currency or asset. Connect Send, Deposit or Swap to separately reviewed workflows.

Customization

WalletCardProps.accounts
Required; WalletAccount[].
WalletCardProps.accountId
Optional; string.
WalletCardProps.defaultAccountId
Optional; string.
WalletCardProps.onAccountChange
Optional; (id: string) => void.
WalletCardProps.balance
Required; number.
WalletCardProps.balancePrefix
Optional; string.
WalletCardProps.defaultChange
Optional; number. Initial balance change shown in the pill before any live change.
WalletCardProps.defaultBalanceHidden
Optional; boolean. Start with the balance hidden behind dots.
WalletCardProps.onSend
Optional; () => void.
WalletCardProps.onDeposit
Optional; () => void.
WalletCardProps.onSwap
Optional; () => void.
WalletCardProps.onBuy
Optional; () => void.
WalletCardProps.searchPlaceholder
Optional; string.
WalletCardProps.searchRecent
Optional; string[]. Recent searches shown in the expanded search panel.

Integration notes

  • Hiding a balance is a presentation choice, not protection for data already sent to the browser.
  • The card does not hold keys, authenticate a wallet or confirm that funds moved.

Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP