---
title: "ColumnHeader"
description: "The sortable, draggable header cell."
canonical: "https://lopifi.com/components/column-header"
---

# ColumnHeader

> The sortable, draggable header cell.

Source: https://lopifi.com/components/column-header
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Family:** Ledger & tables — 
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/ledger-tables

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/column-header
```

## Specification

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.

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
