Components / Interfaces / LedgerList
Ledger List.
FreeComponentA horizontal ledger-style row list with name, meta, mono figure, and status slots.
Demo dataResponsive
- 01Project ApolloSarah Chen$12.4kActive
- 02Project ZephyrJames Park$8.2kReview
Installation
pnpm dlx shadcn@latest add https://elements.micropreneur.dev/r/ledger-list.jsonThe shadcn CLI writes the source into your project. Files added:
- components/elements/ledger-list.tsxcomponent
- lib/utils.tslib
Dependenciesclsxtailwind-merge
API
LedgerList
No props of its own.
Also accepts ComponentProps<'ul'>.
LedgerRow
| Prop | Type | Default | Description |
|---|---|---|---|
| index | ReactNode | — | Optional index marker rendered before the name, e.g. "01". |
| name (required) | ReactNode | — | Primary label. |
| meta | ReactNode | — | Secondary muted detail under or beside the name. |
| figure | ReactNode | — | Right-aligned monospaced figure (amount, count, id). |
| status | ReactNode | — | Trailing status slot, e.g. a StatusBadge. |
| selected | boolean | false |
Also accepts Omit<ComponentProps<'li'>, 'children'>.
Accessibility
- Renders a native ul and li list, so screen readers announce the row count.
- Selection adds an inset rail as well as a tint, so it does not rely on color alone.
- Rows are not focusable by default. Wrap the name in a link or button when a row opens something.