Components
BaseBalanceSummary
A balance with its state and how much is already settled.
components/ui/BaseBalanceSummary.vue
View in the demo
Example
Balance due
$1,800.00Due in 12 days
$1,200.00 of $3,000.00 paid
The amount due of an invoice, the rest of an instalment plan or what is left of a budget. status and statusColor say where it stands (due, overdue, paid); with percent, a bar and progressText show what is already settled. The invoice quick view uses it for the amount due.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
labelrequired | string | — | The label over the figure, such as "Amount due". |
valuerequired | string | number | — | The balance, already formatted. |
status | string | — | A short state next to the balance, such as "Due in 12 days" or "Paid on 24 Nov". |
status-color | string | — | The colour of the state text (error, success…); medium emphasis when empty. |
percent | number | — | How much is already settled, from 0 to 100. Leave it out to hide the bar. |
progress-text | string | — | The sentence under the bar and its accessible name, such as "$1,200 of $3,000 collected". |
color | string | "success" | The colour of the bar. |