Skip to content

SortableHeader

API reference and demos for SortableHeader.

Source

import { SortableHeader } from "@flanksource/clicky-ui/data";
Table Demo · Open in Storybook

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
active* boolean — Whether this header currently owns the sort state.
align enum left Header content alignment.
children* ReactNode — Header label/content.
className string — Classes applied to the button.
dir enum — Current sort direction when active.
onClick* (…) => void — Called when the header is clicked.