Skip to content

Transactions List

Spending grouped by day, the way a bank app shows it: a category tile, the merchant with its card and note, the amount with refunds in green, and a cue on charges that still need a receipt. Search, quick category chips and a filter sheet narrow it. On a desktop, tick rows and move them to a category together; on a phone, swipe a row left for Category and Receipt.

On this page

Examples

State

Installation

npx knowns-ui@latest add transactions-list
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

transactions
Transaction[]
id, merchant, date (YYYY-MM-DD) and amount (negative is money out), plus time, original (a foreign amount), category, account, note, receipt and pending.
today
string
The day it is read on, YYYY-MM-DD. Today and Yesterday count from it.
categories
ExpenseCategory[]
Defaultsix defaults
id, label, color and a glyph name or icon. A row's category id picks its tile.
accounts
string[]
Defaultfrom the rows
Accounts offered in the filter sheet.
currency / locale
string / string
Default"USD" / en-US
How amounts are written.
filter / defaultFilter / onFilterChange
TransactionFilter
Default{}
query, categories, accounts, missingReceipt, min, max, from and to. Control it to keep it in the URL.
onRecategorize
(ids, category) => void
Shows the bulk bar with row checkboxes on a desktop and the Category swipe action on a phone.
onAttachReceipt
(t) => void
The Add receipt cue and the Receipt swipe action.
onOpen
(t) => void
Makes each row a button.
onAdd
() => void
An Add expense button in the header and in the empty state.
loading
boolean
Defaultfalse
Skeleton rows in place of the list.
quickCategories
string[]
Defaultthe first four
Category chips under the search box.

When to use

When to use

  • A bank or card feed grouped by day, with search and filters, where people tidy categories and chase missing receipts.
  • The recent activity on a spending home screen.

When not to use

  • Rows of any kind with sorting and column filters: use Data Table.
  • Recurring charges and renewals: use Subscriptions.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Transactions List to my app and wire it to my own data.
  • I need a bank or card feed grouped by day, with search and filters, where people tidy categories and chase missing receipts. Set that up with the Knowns UI Transactions List.
  • Which Transactions List props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "transactions-list" }) and search_docs({ query: "transactions list" }).

Need help?

Stuck on Transactions List, or found something off? We read every message.