Lab

Sortable table

Slant / Components

A data table with sortable columns and `aria-sort` on the active header.

The theme follows the link: share a page with ?theme=moon.

Usage

  • Headers are buttons; the active column exposes its direction with aria-sort.

Keyboard

Tabmoves between column headers
Enter / Spacesorts by the focused column, then reverses

Accessibility

  • The sort direction is in the header state, not only the arrow.

Sortable table in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.