Wallet Balance
Wallet balance: hide amount, actions, card for top-ups. Pro · Shop and payments › Payments and wallet
Installation
npx valyro-cli@latest login
npx valyro-cli@latest add wallet-balance
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { WalletBalance } from 'valyro-ui-pro';
Props
| Prop | Type | Default | |
|---|---|---|---|
balance * | number | Money available. | |
currency | string | 'USD' | ISO 4217 code. Default USD. |
hidden | boolean | Hides the amount behind dots (controlled); the eye button toggles it. | |
defaultHidden | boolean | Initial hidden when uncontrolled. | |
onHiddenChange | (hidden: boolean) => void | Called with the new hidden when it changes. | |
actions | ReactNode | Buttons under the amount: top up, auto-reload. | |
paymentMethod | WalletPaymentMethod | Card used for top-ups, shown in its own row. | |
children | ReactNode | Content below: usually a TransactionList with variant="plain". | |
locale | string | BCP 47 locale for the amount. | |
labels | Partial<WalletBalanceLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Related components
- Credit Card — Bank card: gradient or two-tone, network detected from the number, contactless
- Card Input — Number, expiry and CVC in one field: masks, Luhn check, auto-advance
- Payment Methods — Saved cards and wallets as selectable cards
- Transaction List — Transactions: charges, top-ups, refunds and balance
- Purchase Card — Product purchase: banner, one-time payment or subscription, card and address
- Loyalty Rewards — Loyalty program: points, tier, progress and a rewards catalog
- Product Card — Product card
- Product Grid — Product catalog
- Product Filters — Catalog filters
- Product Spotlight — Featured product: tagged photo, price, rating and actions
- Reviews Summary — Reviews: average rating, filterable histogram, sorting and helpful votes
- Guided Product Finder — Product finder wizard: branching questions and why a product fits
Previous: Transaction List · Next: Purchase Card · All Shop and payments