Xzero UI
Pro library

Wallet cardPro

A compact account view with balance, recent activity, and focused money actions.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui-pro/wallet-card
Live · keyboard ready

Use this for a balance summary. The preview uses sample values; connect its actions and amounts to your own verified data.

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui-pro/wallet-card

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { WalletCard } from "@/components/xzero/blocks/wallet-card/wallet-card";

export function AccountSummary() {
  return <WalletCard initialBalanceCents={482_150} />;
}

API reference

WalletCard

A wallet view with two accounts, a scrubbable balance chart, activity search, and send, deposit, swap, and buy panels. All balances, history, and actions are local sample state.

PropTypeDefaultDescription
initialBalanceCentsnumber1_248_032Starting balance of the main wallet in cents. The reserve wallet starts at 285,000 cents.

Keyboard interactions

KeysAction
Arrow keysMove along the balance history via the range input scrubber.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Guidance for AI tools

Blocks are complete, self-contained screens with sample data. Replace the sample data and connect the callbacks described above. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components