Calm motion: animations on this site only fade, with no movement
Transaction list
Payments in and out, grouped by day, with a total for each day
Shows the history of an account in a bank, wallet, or shop app. For the balance above it, use the balance card.
Basic
Sen, 16 Nov Day total +Rp 2.315.000
- Sponsor: Radio Kita+Rp 2.500.000
- Pop filter−Rp 185.000
Min, 15 Nov Day total −Rp 214.000
- Hosting, November−Rp 150.000
- Coffee with the guest−Rp 64.000
Jum, 13 Nov Day total +Rp 320.000
- Listener tips+Rp 320.000
transactionsis a list of payments. Each payment has anid, atitle, anamount, and adateasYYYY-MM-DD. It can also have acategory, anicon, andpending.- Money in is a positive amount, and money out is negative. Every amount has a sign, such as "+$300.00" or "−$20.00". Money in is also bold, but the sign carries the meaning.
- The newest day comes first. The heading of each day shows the date and the total of the day.
- Without an
icon, the row shows the first letter of the title. currencyis an ISO 4217 code (defaultUSD), andlocalesets the format of the money and the dates.- Change the words with
labelsor a label pack:title,pending, andtotal(a function of the formatted sum).
Usage
ts
import { BlessTransactionList } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
transactions* | BlessTransaction[] | — | |
currency | string | "USD" | |
locale | string | "en" | |
labels | Partial<{ title: string; pending: string; total: (sum: string) => string; }> | — |