Column Header Test

A single sortable table header cell with built-in sort, alignment and resize support.

Unsorted (sortable, no sort direction)

A sortable header with no active sort. The indicator appears on hover at 40% opacity.

Alpha Fund

Ascending

Header sorted ascending. The chevron points up in the accent colour.

Alpha Fund

Descending

Header sorted descending. The chevron points down in the accent colour.

Zulu Fund

Multi-sort priority

When part of a multi-column sort, a priority number appears next to the indicator.

2024-01-151,234,567

End aligned

Numeric columns use align="end". The sort indicator is placed to the left of the label so the label stays flush with right-aligned numerals below.

1,234,567.89

Bounded resizing with a numeric alternative

Resize the market-value column between 120 and 480 pixels. Drag the separator, use Left/Right (8 pixels), Shift+Left/Right (32 pixels), or Home/End. Escape cancels a drag. The input and Apply button provide a pointer alternative to dragging.

1,234,567.89
Current width: 200 pixels.

Right-to-left resizing

The separator is on the inline end. Drag left or press Left to grow this column. Bounds are 120–480 pixels, with the same keyboard and cancellation support.

$2,500,000
Current width: 200 pixels.

Long label truncation

Long labels truncate with an ellipsis to preserve row height and sticky-header offsets. Hover for the full text via the title attribute.

8.25%

Non-sortable

A non-sortable header has no button, no tabindex, and no sort indicator.

Active

Dark theme

All states render correctly in dark theme through the same --theme-* tokens.

1,234,567
Current width: 200 pixels.

Event handling

Click the sortable header below to see sort events.

42.50
Sort events will appear here...