Wallet card
A payment card with brand, last four digits and actions.
Everyday account
Available balance
$4,820.50
Recent activity
- Northwind invoiceToday+$1,280.00, received
- Studio rentYesterday−$950.00, paid out
- Cloud hostingMon−$62.40, paid out
When to use
- Showing a saved payment method.
When not to use
- Collecting a new card; use the checkout.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/wallet-card
Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
WalletCard
7 props
PropTypeDefaultDescription
name *string—
balance *number—
currencystring"USD"
accountNumber *string—Full number; only the last four digits are shown unless the person reveals it.
actions *readonly WalletAction[]—
transactionsreadonly WalletTransaction[][]
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-hidden, aria-label and aria-pressed in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/wallet-card.mdThe index of every part is at /llms.txt.