Skip to content
Keyboard shortcuts
Esc
Everywhere
Search the site
⌘K
Search the site
/
Show these shortcuts
?
Close what is open
Esc
Install
195 components

ColumnHeader

The sortable, draggable header cell.

npx shadcn add @lopifi/column-header

How 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.

Read the Ledger & tables spec

The accounting it encodes

The concepts this component renders, each defined once in the lexicon.

  • Transaction

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.

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

We don’t rent the list, and asking takes you off it. We use this to reply and to send the updates you asked for. To unsubscribe, reply to any email or write to hello@lopifi.com. See Privacy.

Or install it now

npx shadcn add @lopifi/column-header