ValyroUI Русская версия

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

PropTypeDefault
balance *numberMoney available.
currencystring'USD'ISO 4217 code. Default USD.
hiddenbooleanHides the amount behind dots (controlled); the eye button toggles it.
defaultHiddenbooleanInitial hidden when uncontrolled.
onHiddenChange(hidden: boolean) => voidCalled with the new hidden when it changes.
actionsReactNodeButtons under the amount: top up, auto-reload.
paymentMethodWalletPaymentMethodCard used for top-ups, shown in its own row.
childrenReactNodeContent below: usually a TransactionList with variant="plain".
localestringBCP 47 locale for the amount.
labelsPartial<WalletBalanceLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Transaction List · Next: Purchase Card · All Shop and payments