Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Wallet Card

Preview

Balance

$12,480.32
+$124.50

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/wallet-card

Import the shared styles once in your application.

TSUsage
import WalletCard from '@/components/beui/blocks/WalletCard.vue'
import '@/components/beui/styles.css'

API Reference

labels?
Partial<typeof walletCardMessages>

Override any built-in string.

Default—
accounts
WalletAccount[]
Default—
v-model:accountId?
string
Default—
defaultAccountId?
string
Default—
@account-change?
(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
@send?
() => void
Default—
@deposit?
() => void
Default—
@swap?
() => void
Default—
@buy?
() => void
Default—
searchPlaceholder?
string
Default—
searchRecent?
string[]

Recent searches shown in the expanded search panel.

Default—
@search-change?
(query: string) => void
Default—
@search-submit?
(query: string) => void
Default—
hasNotifications?
boolean

Show an unread pulse on the notifications bell.

Defaultfalse
@notifications?
() => void
Default—
className?
string
Default—
#avatar?
{ account: WalletAccount }
Default—

Updated