Skip to main content
  1. Docs
  2. Components
  3. Data display

Table

The one way to show records. Columns and rows in; sorting, selection, row actions and every state built in.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<table>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A console's list of records: users, sessions, invoices, audit events.
  • A few read-only rows to compare.
  • A server-paged list, with Pagination.
Not for

02

Anatomy

  1. 1table-count<span>While rows are chosen: the count, bulkActions and Clear, in the toolbar's place.
  2. 2table-head<th scope="col">A sorted column: aria-sort, and its arrow.
  3. 3checkbox<span role="checkbox">A row's checkbox, named "Select Priya Sharma".
  4. 4table-row<tr>A chosen row keeps its Ember tint.
  5. 5row-actions<button>Its actions, a menu named "Actions for Priya Sharma".

03

Do and don't

Status as a word
DoA Badge that says it: Active, Blocked.
Don'tA colour alone: what does green mean?
Numbers at the end
DoTimes and amounts end-aligned, so they line up.
Don'tStart-aligned figures: the digits wander.

04

Content

  • Headers in sentence case, a word or two: Last sign-in.
  • Name the table with label: "Users", as the page heading says.
  • An empty cell shows —; say why in the empty state, not in a cell.
Next — TableAPI