Calm motion: animations on this site only fade, with no movement
Balance card
The balance of an account, with the change and the main actions
Shows how much money an account holds, at the top of a bank or wallet screen. For any other single number, use the stat.
Basic
Studio account
Rp 18.450.000
+Rp 2.350.000 up · this month
Savings
$3,120.40
−$85.20 down · this week
labelis the name of the account, andamountis the balance.currencyis an ISO 4217 code (defaultUSD), andlocalesets the format (default English).changeis the change overperiod, in the same currency. It shows with a sign and a word, such as "+$2.00 up". A drop is also red, but the sign and the word carry the meaning.- The eye button hides the amount and the change, for a screen that other people can see.
v-model:maskedholds that state. Screen readers hear "Hidden" in place of the amount. - Put buttons such as Transfer in the default slot.
- Change the words with
labelsor a label pack:show,hide,hidden,up, anddown.
Usage
ts
import { BlessBalanceCard } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
label* | string | — | the name of the account, for example "Main account" |
amount* | number | — | |
currency | string | "USD" | ISO 4217 code, for example `IDR` or `USD` |
locale | string | "en" | |
change | number | — | the change over `period`, in the same currency |
period | string | — | the period of the change, for example "this month" |
labels | Partial<{ show: string; hide: string; hidden: string; up: string; down: string; }> | — | |
masked | boolean | false | hide the amounts, for a screen that other people can see |
Events
| Name | Payload | Description |
|---|---|---|
update:masked | [value: boolean] |
Slots
| Name | Scope | Description |
|---|---|---|
default | — |