Transaction List Item
One row in a transaction history: counterparty, time, and signed amount.
- Status
- ReadyBuild day 20 of 21
- Code
- In React
- Role
- Display
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
Pastes as editable layers. Shadows are not exported.
import { TransactionListItem, type TransactionTone } from "@/ui";
const tone: TransactionTone = "success";
export default function TxDemo() {
return (
<TransactionListItem
href="/transactions/123"
tone={tone}
title="Transfer from Andi"
label="Transfer"
timestamp="18 Sep, 14:02"
amount="Rp500.000"
/>
);
}Variants and states
Every specimen is the real component from src/ui, held in one state.
Pastes as editable layers. Shadows are not exported.
Props
- title
- string · default none
- Required. One line, truncated.
- timestamp
- string · default none
- Required.
- amount
- string · default none
- Required. Formatted, without a sign.
- tone
- "neutral" | "success" | "danger" · default "neutral"
- The sign is locked per tone: + in, − out.
- label
- string · default none
- Category or status.
- icon
- ReactNode · default none
- Defaults to a wallet.
- href
- string · default none
- Makes the row a link.
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 🎨 Tone
- tone
- Neutral, Success, Danger.
- 🎯 State
- href
- Hover and Pressed need a link row.
- Icon
- icon
- Pass an icon.
- Title, Label, Timestamp, Value
- title, label, timestamp, amount
- Same text.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- With href, the row is one link.
Screen readers
- The sign is read as Incoming or Outgoing, not as a plus or minus character.
What you still need to do
- Do not rely on green and red alone: the sign and the spoken direction carry the meaning.
When to use
Account history, wallet activity, and payment lists.
Do and don't
Do
- Show money out and money in with both a sign and color.
- Format amounts in the user's currency and locale.
Don't
- Use color alone to show direction.
- Round amounts in a history list.
Related
4 of 28 other molecules, same role and ready ones first.
- AccordionStacked sections that expand to reveal their content.Ready
- CardA container that groups related content and actions.Ready
- DividerA thin line used to separate content into distinct sections.Ready
- Empty StateCommunicates that there is no content to show, with a next step.Ready
Status reflects the component tracker snapshot of 29 October 2026.