TransactionList

A ledger grouped by day with each day's net on the heading. Money in is green, pending rows are softened, and a row opens on a spring for its details. Finance.

Open playground

Today

+$4,192.45

Yesterday

−$116.68

About

TransactionList is a React component in the Finance category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { TransactionList } from "@ashutoshswamy/smoui" and set items, currency.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { TransactionList } from "@ashutoshswamy/smoui";

<TransactionList items={[{ id: "1", merchant: "Northwind Roasters", category: "Coffee", amount: -4.8, group: "Today" }]} />

Props 2

items

Rows. Negative amounts are money out. Groups appear in the order they first occur.

{ id; merchant; category; amount; group; time?; note?; pending? }[]
currency

ISO currency code.

stringdefault "USD"