SortableHeader
stableSortable column header with direction indicator for data tables
import { SortableHeader } from "@nodus/design-system/finance"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
labelreq | string | — | Column header label |
direction | "asc" | "desc" | "none" | — | Current sort direction |
onSort | () => void | — | Called when header is clicked to toggle sort |
align | "left" | "right" | "center" | "left" | Column alignment |
density | "default" | "compact" | — | Display density |
labelrequiredType
stringDefault —Column header label
directionType
"asc" | "desc" | "none"Default —Current sort direction
onSortType
() => voidDefault —Called when header is clicked to toggle sort
alignType
"left" | "right" | "center"Default "left"Column alignment
densityType
"default" | "compact"Default —Display density
MobileTouch Target
Sort toggle tap area must be ≥44px — extend beyond the visible icon. On mobile, consider moving sort controls to a filter sheet.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?