Skip to content

TotalBalance

Aggregate balance display with quick action buttons (receive, send, convert).

Open in Storybook

Interactive Demo

Your total balance

USD 12,345.67

Usage

vue
<script setup>
import { TotalBalance } from '@yellowcard/b2b-design-system';
</script>

<template>
  <TotalBalance
    :balance="12345.67"
    currency="USD"
    balanceLabel="Your total balance"
    :canReceive="true"
    :canSend="true"
    :canConvert="true"
  />
</template>

API Reference

Props

PropTypeDefaultDescription
balancenumber0Total balance amount
currencystring'USD'Currency code
balanceLabelstring'Your total balance'Balance label
hideBalancebooleanfalseHide balance value
lowBalancebooleanfalseLow balance indicator
isMobilebooleanfalseMobile layout
canReceivebooleantrueShow receive action
canSendbooleanfalseShow send action
canConvertbooleanfalseShow convert action
receiveLabelstring'Receive'Receive button label
sendLabelstring'Send'Send button label
convertLabelstring'Convert'Convert button label