StealThis .dev

Banking — Transaction Row

A trust-first fintech transaction list built with vanilla HTML, CSS and JavaScript. Each row pairs a merchant avatar, name, category and date with a right-aligned amount that colors credits green and debits ink, plus a clear status pill for pending, cleared or failed states. Rows lift on hover and expand on click to reveal method, reference, settlement state and quick actions. Filter chips, live merchant search, masked card numbers and a small toast helper round out a polished, dependency-free pattern.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Transaction Row

A reusable banking transaction row, rendered as a calm-but-dense ledger under a navy account card. Every row leads with a rounded merchant avatar, then the merchant name with its category and posting date, and finishes with a right-aligned amount that uses tabular figures. Credits glow green while debits stay ink-dark, and a status pill marks each entry as pending, cleared or failed so the state is readable at a glance.

Rows respond to interaction: they tint and lift on hover, and clicking (or pressing Enter on the keyboard-focusable button) smoothly expands an inline detail panel. The panel surfaces the posting time, payment method with a masked card number, a monospaced reference, and a verification cue — a lock for cleared payments, an hourglass for pending settlement, or a warning with a retry option for declined ones. Quick actions let you view a receipt, copy the reference, retry, or open a dispute, each confirmed by a lightweight toast.

The toolbar adds filter chips (All, Pending, Cleared, Income) and a live merchant search that re-render the list instantly, with an empty state when nothing matches. Everything is self-contained vanilla JavaScript with realistic, clearly fictional merchants, IBANs and •••• 4242 card numbers, and the layout collapses gracefully down to roughly 360px for customer mobile screens.

Illustrative UI only — not real banking software or financial advice.