Skip to content
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 KitaIncome+Rp 2.500.000
  • Pop filterGear · pending−Rp 185.000

Min, 15 Nov Day total −Rp 214.000

  • Hosting, NovemberServices−Rp 150.000
  • Coffee with the guestFood−Rp 64.000

Jum, 13 Nov Day total +Rp 320.000

  • Listener tipsIncome+Rp 320.000
  • transactions is a list of payments. Each payment has an id, a title, an amount, and a date as YYYY-MM-DD. It can also have a category, an icon, and pending.
  • 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.
  • currency is an ISO 4217 code (default USD), and locale sets the format of the money and the dates.
  • Change the words with labels or a label pack: title, pending, and total (a function of the formatted sum).

Usage ​

ts
import { BlessTransactionList } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
transactions*BlessTransaction[]—
currencystring"USD"
localestring"en"
labelsPartial<{ title: string; pending: string; total: (sum: string) => string; }>—

Released under the MIT License. Character names and artwork belong to their owners.