Avara UI

Shadcn Wallet

An interactive fintech cardholder wallet (Wallet) with three staggered spring cards, a physical thumb scoop, 3D card flip, and a balance privacy toggle.

Applies to this page's previews only

About Shadcn Wallet

What it is. Wallet displays a physical-pocket cardholder with three staggered payment cards (cards: WalletCardItem[]), click-to-pull and 3D-flip inspection, and an optional allowReveal balance mask toggle.

How it is built. Engineered with an enclosed pocket base so cards stay hidden at rest, tap-to-reveal support on touchscreens, and automatic light/dark palette switching.

When to use it. Use Wallet in fintech dashboards, billing/payment overviews, and interactive product demos. For swipeable card decks, use Card Stack.

For AI agents

Hand your agent this brief or the Markdown page, not a screenshot.

When to use

  • Fintech cardholder showcases with hover/tap card fanning, 3D card flip, and masked balance toggle

When not to use

Agent notes

  • Named exports: Wallet, type WalletCardItem from @/components/custom/blocks/WalletBlock
  • Pass allowReveal and overallBalance for the privacy eye toggle; pass custom cards to override card names, balances, and gradients
Install
npx shadcn@latest add https://avaraui.com/r/wallet.json
Registry name
@avara-ui/wallet, through the shadcn MCP server
Index
llms.txt lists every page, or add the agent skill once

Props Reference

PropTypeDefaultDescription
cardsWalletCardItem[]DEFAULT_WALLET_CARDSArray of cards with balances, names, chip states, and gradients.
overallBalancestring"$89,000.00"The total balance shown on the front face of the wallet.
overallLabelstring"Overall Balance"Subtitle text displayed underneath the overall balance.
revealTextstring"Reveal balance"Label for the button when balance is concealed/masked.
concealTextstring"Conceal balance"Label for the button when balance is revealed/visible.
maskedBalancestring"✱✱✱✱✱✱✱✱"Placeholder string rendered when balance is hidden.
allowRevealbooleantrueWhether to show the Reveal/Conceal balance toggle button.
defaultRevealedbooleanfalseInitial visibility state of the balance (masked or unmasked).
autoRevealOnHoverbooleanfalseAutomatically unmask the balance when hovering over the wallet.
walletColorstring"var(--primary)"Base color or CSS variable. The sleeve and pocket wear a soft tint of it, with text in a deep shade of the same hue.
hintstring"Hover to view cards"Prompt shown above the closed wallet on pointer devices. Pass "" to hide.
touchHintstring"Tap to view cards"The same prompt on touch screens, where the wallet opens on tap.
openHintstring"Click a card to view details"Prompt shown while the cards are out, on pointer devices. Pass "" to hide.
touchOpenHintstring"Tap a card to view details"The open prompt on touch screens.
classNamestringundefinedOptional wrapper container CSS classes.

WalletCardItem Object

PropertyTypeDefaultDescription
namestringRequiredCard title or currency name (e.g., "Pounds", "Euros").
balancestringRequiredFormatted balance amount (e.g., "€46,000.00").
currencystringundefinedCurrency code (e.g., "GBP", "EUR", "USD").
tagstringundefinedSmall pill tag in top right (e.g., "SAVINGS", "PRIMARY").
cardNumberstring"•••• 4829"Masked card number displayed in the card footer.
expirystring"12/29"Expiration date string (e.g., "08/29", "09/30").
issuerstring"PINSTACK"Card issuer or network brand name.
cvvstring"832"CVV security code shown on the back-face signature strip.
hasChipbooleanfalseRenders the metallic golden EMV chip on the card face.
gradientLightstringundefinedTailwind gradient classes for Light Mode card background.
gradientDarkstringundefinedTailwind gradient classes for Dark Mode card background.
textColorLightstringundefinedText color class for Light Mode (e.g., "text-amber-950").
textColorDarkstringundefinedText color class for Dark Mode (e.g., "text-white").
subtextColorLightstringundefinedSecondary text color class for Light Mode.
subtextColorDarkstringundefinedSecondary text color class for Dark Mode.
backSignatureLabelstring"AUTHORIZED SIGNATURE"Label inside the back-face white signature strip.
backSubtitlestring"GLOBAL SECURE ASSET CARD"Header text printed on the card back footer.
backNoticestring"NOT VALID UNLESS SIGNED..."Legal disclaimer text printed on the card back footer.

Works with other components

How do I build a fintech card wallet UI in React?

Render Wallet and pass a cards array of WalletCardItem objects, each with a name and balance. The wallet shows three staggered cards in a pocket, lets users pull one out and flip it in 3D, and shows overallBalance on its face.

Does Wallet work on touch devices without hover?

Yes. Tapping Wallet on touchscreens opens the staggered card fan, and tapping an individual card pulls it out and flips it in 3D. Prompts use touchHint and touchOpenHint on touch screens, and hint and openHint on pointer devices.

How do I mask or reveal the balance?

allowReveal shows a Reveal and Conceal button and is true by default. Set defaultRevealed to start unmasked, or autoRevealOnHover to unmask while hovering. maskedBalance is the placeholder text, and revealText and concealText rename the button.

How do I style each card and the wallet colour?

Each WalletCardItem takes gradientLight and gradientDark Tailwind gradient classes for the two themes, plus hasChip, tag, currency, cardNumber, expiry, issuer and cvv. walletColor tints the sleeve and pocket, and defaults to var(--primary).

When should I use Wallet instead of SecureEnvelope?

Use Wallet for several payment cards held in one pocket, with balances. Use Secure Envelope when you want one pass, ticket or voucher that slides out of a sleeve and flips. Pair Wallet with Counter for animated balances.