← ui-lab

Sortable Table

A data table whose rows sort by clicking a column header. Each header cycles its aria-sort none → ascending → descending, and only one column is the active sort key at a time — so screen-reader users always know how the table is ordered.

Preview

BlueBob82
RedAlice91
BlueAlice75
RedBob60

Installation

npx shadcn@latest add https://ui.publictheta.com/r/sortable-table.json

Conformance

This component conforms to the @publictheta/ui-spec sortable-table specification. Run the suite against any implementation with pnpm conformance.