Prometheus Design System

Sortable Table

Variant of Table with up/down chevron icons stacked in each <th>. Clicking the header sorts. Currently only on /flags.

DO

Promote Sortable Table to the default so /tsdb-status Top-N tables gain sort too.

DON'T

Hide sortability behind a prop users have to opt into per column.

Design

default

Flag Value
--config.fileprometheus.yml

Each header cell has stacked sort chevrons.

Component reference (screenshots)
/flags
/flags light

Placeholder screenshots — the audited app is live at prometheus-e83j.onrender.com.

Implementation

<Table sortable>…</Table>

Layout

PropertyValue
sort-iconstacked chevron-up/chevron-down
sort-icon-size12px

Accessibility

ARIAth gains aria-sort='ascending'|'descending'|'none'.
KeyboardEnter/Space on a focused th toggles the sort.

Related inconsistencies