ColumnHeader
The sortable, draggable header cell.
npx shadcn add @lopifi/column-headerHow it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
The same two behaviors for a table that renders its own rows; TransactionTable uses
it. The sort control is a real <button> inside the cell, not a handler on the <th>,
because the resize handle beside it needs its own focus stop. aria-sort stays on the
<th>, where a screen reader looks for it. The direction chevron always reserves its
space, so the label doesn't shift sideways each time the column is sorted.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Ledger & tables
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section ColumnHeader renders in, the calculators behind its figures, and the ledger payloads that feed it.
- ColumnHeader, runningThe tables showcase — live, with theme, density, grayscale and reduced-motion switches.
- Ledger & tablesThe table is the product. It gets the same design attention as the hero card. Specs for 17 React components: TransactionTable, TransactionRow, TransactionCard, TransactionDetail and 13 more.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Ledger & tables changes
Your copy doesn’t update itself when we fix something here.
- One email when a Ledger & tables component needs a migration
- Nothing when nothing changes
Or install it now
npx shadcn add @lopifi/column-header