BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/beui/wallet-card

Wallet Card

beui/wallet-card
FreeBlock

Wallet overview card with an account switcher and search that morph open from their triggers, a cascading balance with a live change pill and privacy toggle, copy-address, and Send / Deposit / Swap / Buy actions.

Install it

npx shadcn@latest add https://beui.dev/r/wallet-card.json

Source

components/motion/wallet-card/index.tsxbeui.dev/r/wallet-card.json
1"use client";
2// beui.dev/components/blocks/wallet-card
3
4import { Bell, Eye, EyeOff } from "lucide-react";
5import { useState } from "react";
6import { ActionSwapText } from "@/components/motion/action-swap";
7import { Button } from "@/components/motion/button";
8import { cn } from "@/lib/utils";
9import { AccountSwitcher } from "./account-switcher";
10import { WalletActions } from "./actions";
11import { BalanceDelta } from "./balance-delta";
12import { SearchBar } from "./search-bar";
13import type { WalletCardProps } from "./types";
14
15export type { WalletAccount, WalletCardProps } from "./types";
16
17/**
18 * Composed wallet overview card: an account switcher whose trigger morphs open
19 * into a full-width panel, a search icon that morphs into a search bar, a
20 * rolling balance with a transient change indicator, and Send / Deposit
21 * actions. Actions and search are plain callbacks — the resulting flow is left
22 * to the consumer.
23 */
24export function WalletCard({
25 accounts,
26 accountId,
27 defaultAccountId,
28 onAccountChange,
29 balance,
30 balancePrefix = "$",
31 defaultChange,
32 defaultBalanceHidden = false,
33 onSend,
34 onDeposit,
35 onSwap,
36 onBuy,
37 searchPlaceholder,
38 searchRecent,
39 onSearchChange,
40 onSearchSubmit,
41 hasNotifications = false,
42 onNotifications,
43 className,
44}: WalletCardProps) {
45 const accountControlled = accountId !== undefined;
46 const [internalAccountId, setInternalAccountId] = useState(
47 defaultAccountId ?? accounts[0]?.id,
48 );
49 const [balanceHidden, setBalanceHidden] = useState(defaultBalanceHidden);
50
51 const shownBalance = `${balancePrefix}${balance.toLocaleString(undefined, {
52 minimumFractionDigits: 2,
53 maximumFractionDigits: 2,
54 })}`;
55 const maskedBalance = "*".repeat(7);
56 const activeAccountId = accountControlled ? accountId : internalAccountId;
57 const activeAccount =
58 accounts.find((a) => a.id === activeAccountId) ?? accounts[0];
59
60 const handleAccountChange = (id: string) => {
61 if (!accountControlled) setInternalAccountId(id);
62 onAccountChange?.(id);
63 };
64
65 return (
66 <div
67 className={cn(
68 "relative w-full max-w-xs overflow-hidden rounded-4xl border border-border p-6",
69 className,
70 )}
71 >
72 {/* relative anchor so the switcher + search panels span the whole row */}
73 <div className="relative flex items-center justify-between gap-2">
74 <AccountSwitcher
75 accounts={accounts}
76 activeAccount={activeAccount}
77 onSelect={handleAccountChange}
78 />
79
80// … truncated

What it pulls in

npm packages

  • clsx
  • lucide-react
  • motion
  • tailwind-merge

Files it writes

  • components/motion/wallet-card/index.tsx
  • components/motion/wallet-card/account-switcher.tsx
  • components/motion/wallet-card/actions.tsx
  • components/motion/wallet-card/balance-delta.tsx
  • components/motion/wallet-card/search-bar.tsx
  • components/motion/wallet-card/types.ts
  • components/motion/action-swap.tsx
  • components/motion/button/index.tsx
  • lib/utils.ts
  • components/motion/wallet-card/account-avatar.tsx
  • components/motion/wallet-card/constants.ts
  • components/motion/wallet-card/copy-button.tsx
  • components/motion/wallet-card/use-dismiss.ts
  • components/motion/wallet-card/utils.ts
  • lib/ease.ts
  • components/motion/button/base.tsx
  • components/motion/button/magnetic.tsx
  • components/motion/button/stateful.tsx
  • lib/hooks/use-hover-capable.ts
  • components/motion/magnetic.tsx

Facts

Registry
beui
Type
registry:block
Access
Free
Files written
20
Licence
the repository states none
First indexed
2026-08-12
Last confirmed
today

Go to the source

beui.dev Raw registry item This item as JSON

More from beui

All 104 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
File Upload Attachment Uploadattachment-uploadbeuiBlocksFree4 deps · 5 files
Availability Scheduleravailability-schedulerbeuiBlocksFree4 deps · 15 files
Bloom Menubloom-menubeuiBlocksFree4 deps · 3 files
Command Palettecommand-palettebeuiBlocksFree4 deps · 3 files
Dynamic Islanddynamic-islandbeuiBlocksFree3 deps · 3 files
Expandable Action Barexpandable-action-barbeuiBlocksFree3 deps · 2 files
Expandable Tabsexpandable-tabsbeuiBlocksFree3 deps · 3 files
Feedback Widgetfeedback-widgetbeuiBlocksFree4 deps · 9 files
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex