Skip to main content

Transaction History

A list of banking transactions with amount, description, date, and status.

Preview ยท Transaction History

Codeโ€‹

<div class="table">
<table>
<thead><tr><th>Date</th><th>Description</th><th>Amount</th><th>Status</th></tr></thead>
<tbody>
<tr><td style="color:var(--muted-foreground);font-size:0.8rem">Mar 1</td><td style="font-size:0.875rem">Stripe payment received</td><td style="color:var(--success);font-weight:500">+$12,000</td><td><span class="badge success">Completed</span></td></tr>
<tr><td style="color:var(--muted-foreground);font-size:0.8rem">Feb 28</td><td style="font-size:0.875rem">AWS infrastructure</td><td style="color:var(--danger);font-weight:500">-$3,200</td><td><span class="badge success">Completed</span></td></tr>
<tr><td style="color:var(--muted-foreground);font-size:0.8rem">Feb 27</td><td style="font-size:0.875rem">Payroll processing</td><td style="color:var(--danger);font-weight:500">-$45,000</td><td><span class="badge warning">Pending</span></td></tr>
</tbody>
</table>
</div>

Propsโ€‹

PropTypeDefaultDescription
transactionsTransaction[]requiredTransaction list
onTransactionClick(tx)=>voidโ€”Row click

TypeScript interfacesโ€‹

interface Transaction {
id: string;
date: string | Date;
description: string;
amount: number; // Positive = credit, negative = debit
currency: string;
status: 'completed' | 'pending' | 'failed' | 'cancelled';
type: 'credit' | 'debit';
category?: string;
reference?: string;
}

Eventsโ€‹

EventTypeDescription
onTransactionClick(tx: Transaction) => voidRow click handler
Version history

See the Changelog for version history and breaking changes.