Wallet Card

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/wallet-card

API Reference

labels?
Partial<{ notifications: string; balance: string; showBalance: string; hideBalance: string; search: string; searchPlaceholder: string; noMatches: string; noRecent: string; selectAccount: string; ... 5 more ...; copyAddress: string; }>

Override any built-in string.

Default—
accounts
WalletAccount[]
Default—
accountId?
string
Default—
defaultAccountId?
string
Default—
onAccountChange?
((id: string) => void)
Default—
balance
number
Default—
balancePrefix?
string
Default$
defaultChange?
number

Initial balance change shown in the pill before any live change.

Default—
defaultBalanceHidden?
boolean

Start with the balance hidden behind dots.

Defaultfalse
onSend?
(() => void)
Default—
onDeposit?
(() => void)
Default—
onSwap?
(() => void)
Default—
onBuy?
(() => void)
Default—
searchPlaceholder?
string
Default—
searchRecent?
string[]

Recent searches shown in the expanded search panel.

Default—
onSearchChange?
((value: string) => void)
Default—
onSearchSubmit?
((value: string) => void)
Default—
hasNotifications?
boolean

Show an unread pulse on the notifications bell.

Defaultfalse
onNotifications?
(() => void)
Default—
className?
string
Default—

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated