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
| Blue | Bob | 82 |
| Red | Alice | 91 |
| Blue | Alice | 75 |
| Red | Bob | 60 |
Installation
npx shadcn@latest add https://ui.publictheta.com/r/sortable-table.jsonConformance
This component conforms to the @publictheta/ui-spec sortable-table specification. Run the suite against any implementation with pnpm conformance.