A table compares the same data across many things: you read it, sort it and select from it. It’s native HTML, so without JavaScript it reads in full, and when its columns don’t fit it becomes a list without losing anything.
To compare, sort or select several things that share the same columns. What reads as a list with its detail is a list.
If you need
Use
Never
To compare the same data across many things, sort them or select several
Table
For something that reads as a list with detail, like an inbox of conversations: that’s a list.
To group what belongs together: a payment, a project, a short list
Card
A one-row table.
A figure that’s read before anything else and followed over time
Metric
A one-figure table.
To edit cells in place, like a spreadsheet
A grid, which is a different piece
This table: it reads, sorts and selects.
Clients 5
0 clients selected
Clients
Client
Projects
Amount due
Last activity
PLPanadería LupitaAna Vega
3 projects
$182,400
CACafé AlturaLuis Ortiz
1 project
$46,800
ENEstudio NorteMarta Ruiz
5 projects
$312,000
HBHotel BrisaDiego Salas
2 projects
$98,500
TÁTaller ÁmbarSofía Lara
4 projects
$154,300
The live table: select a row, a range with Shift or the whole page from the header, and the bar turns into the batch bar in place.
Each row is one thing
A client, an invoice, an access. The column that names it goes first, and it’s the one that opens it.
The same columns
What every row has is compared top to bottom. What not all of them have goes in their detail, not in an almost empty column.
The component paints
Sorting, paging and searching are handled by the page or the server. The table paints what it gets and says what changed.
Anatomy
The table is its own raised layer. Top to bottom: the bar, the header, the rows and the footer.
Part
What it is
The bar
The title with its count and, in its search, the filters. When you select, it turns into the batch bar in place.
The header
The column names, in sentence case. It stays pinned under the bar; the sorted column carries its arrow.
The checkbox
Selection’s own, with no text and a name for screen readers: “Select Panadería Lupita”.
The naming column
It takes a third of the width. It holds the avatar, the name (the link that opens the row) and a second line in secondary text.
Figures
At the end of their cell, with tabular figures and their language’s format.
The fixed column
In a table that slides sideways, the first column stays in place and, as the rest moves, carries a short shadow on its outer side.
Each row’s ⋯
The row’s actions, in a menu. It measures 32 and sits at the end.
The footer
The visible range (“1–50 of 3,368”) and the previous and next page.
Sizes
Two densities. Comfortable is a portal’s and compact, a console’s. Compact only exists with a fine pointer: on a phone, everything returns to comfortable.
Piece
Comfortable
Compact
The row
52
36
The two-line row
70
52
The header
44
32
The bar · the footer
60 · 52
52 · 36
The checkbox · the row’s avatar
medium · small (32)
small · mini (24)
The first cell’s padding
24
16
The name, a third
The naming column takes a third of the width and the others share the rest. A seven-column table fits at 200 % zoom.
Stripes, with many columns
Rows alternate their background only past six columns. With fewer, the separator is enough.
Inside a card, to its edges
A table inside a card doesn’t draw its own layer: it reaches the card’s edges.
States
The table always says where it is: loading, reloading, empty or with an error, and which row is selected or open.
Loading
Clients
Client
Projects
Amount due
Empty
Clients
Client
Projects
Amount due
No clients yet
The clients you invite show up here.
With an error
Clients
Client
Projects
Amount due
Couldn’t load the clients
Check your connection and try again.
The first load, with the skeleton in the shape of the rows; the empty state, which says what will show up; and the error, with “Try again”.
State
How it looks
Loading, the first time
The skeleton in the shape of the rows, after 400 ms: what’s fast doesn’t flicker. No footer, because the count isn’t known yet.
Reloading
The rows stay while the new ones arrive; the table is announced as busy.
Empty
A section empty state with what will show up and, when it’s up to the person, its action. A search with no results says so.
With an error
What failed, with “Try again”, in a message that’s announced.
Selected row
An accent tint and its checked checkbox: color never goes alone.
Hover · open
The row takes a fill on hover and the next one while its sheet is open: 1 and 2 in Flouvia’s theme, 2 and 3 in a light theme.
More contrast
The table adds a 1 edge around it, like the popover.
Selection and batch actions
Checkboxes select the rows you’re about to act on. The batch bar says how many and what you can do with them.
A range
Shift and click, or Shift and Space, select every row between the last one and this one.
The page and all of them
The header checkbox selects the page and offers “Select all 3,368”, which selects every row that matches the search, on other pages too. Screen readers hear both: how many are selected and that all of them can be.
The batch bar, in place
The bar turns into the batch bar: how many, and up to three actions in view; the rest, in “More actions”.
What destroys, with its confirmation
Archiving or deleting in a batch opens its confirmation with the selection; it never happens in a single tap.
Clearing the selection
With “Clear selection”. Escape doesn’t clear it: a slip never loses what was chosen.
A new search clears it
A new search changes the rows, so the selection is cleared.
Sorting and pages
The natural direction, first
The first click sorts text from A to Z and figures and dates from high to low; the second, the other way.
It works without JavaScript
When the sort and the page live in the URL, the header and the pages are links, and focus returns to the same control on the new page.
A page that doesn’t exist
It’s painted as the last one, and the URL is corrected.
Opening a row
The name is the control and the whole row defers to it. Selecting its text never opens it; when its sheet closes, focus returns to the name.
On a phone
When its columns don’t fit, the same table is drawn as a list; below 600 wide, always, without JavaScript too. No column is lost: what doesn’t fit in view stays for screen readers.
Clients 3
0 clients selected
Clients
Client
Projects
Amount due
Last activity
PLPanadería LupitaAna Vega
3 projects
$182,400
CACafé AlturaLuis Ortiz
1 project
$46,800
ENEstudio NorteMarta Ruiz
5 projects
$312,000
The same table in a narrow container: the name with its second line, the projects with their unit, the amount due at the end and “Select”, which shows the checkboxes.
The figure, with its unit
In the table the header says the unit; in the list it goes with the figure: “5 projects”. The figure that matters most sits at the end of its line, apart from the name.
Select, when asked
“Select” shows the checkboxes and “Done” hides them, along with the selection. The batch bar floats at the bottom of what’s in view; with the whole page selected, “Select all N” goes in that bar, next to the count.
The table decides
The list arrives when the columns don’t fit the table’s width, measured with its rows and its type: an eight-column table becomes a list in a panel where a three-column one stays a table.
Sort, in a capsule
“Sort” sits on the title’s line, with the arrow of today’s direction, and opens the columns that sort.
Never sideways
The list never pushes the page sideways. Only a console’s data table slides in two directions, with its first column fixed, and it never becomes a list.
Content
Part
How it’s written
The table’s name
What it lists, in plural: “Clients”. It always has one, even when hidden from view.
Headers
One or two words, in sentence case. The unit goes in the header, not in every cell: “Amount due”.
The second line
What tells the row apart at a glance: the contact, the email, the plan.
Figures and dates
In their language’s format, never by hand: “$182,400”. Dates in the current year go without the year, “Nov 27”; others, with it, “Dec 12, 2025”.
The missing value
A dash, “—”, that screen readers hear as “No data”. Never a zero that looks like data.
Batch actions
Verbs: “Export”, “Archive”. What opens its confirmation ends in “…”.
The empty state
What will show up, with no period in the title: “No clients yet”.
Languages and direction
Its own words, in both languages
“Select all on this page”, “3 clients selected”, “Sorted by Client, A to Z”, “1–50 of 3,368” and “Page 2 of 68” are written by the component in its language, with the feminine form in Spanish too.
Figures, in their language
The thousands separator is the same in Mexican Spanish and in English. Currency carries its symbol before and its code after; the percent sign takes a space in Spanish, “12 %”, and not in English.
Spanish grows
A long header wraps to two lines before widening the column; the row grows downward.
Right to left
Columns follow the reading order and figures sit at the end of their cell. The sort arrow doesn’t mirror: it points up or down.
Accessibility
It’s a native table, with its roles spelled out: even as a list, screen readers move through it as a table. It meets WCAG 2.2 AA.
What
Keyboard
What’s announced
Sort
Tab and Enter on the header
“Sorted by Amount due, high to low.”
Select · a range
Space · Shift and Space
“3 clients selected”
Select the page
Space on the header checkbox
“50 clients selected. You can select all 3,368.”
Select all N
Tab to “Select all 3,368”
“24 clients selected, across all pages”
Clear the selection
Enter
“Selection cleared.”, and focus returns to the header checkbox
Open a row
Tab to the name and Enter
The sheet or the page; on close, focus returns to the name
Pages
Tab and Enter
“Page 2 of 68”
Headers are spoken
Each cell is announced with its column and its row, and the table’s name adds its sort.
Never color alone
The selected row carries its checkbox; the sort, its arrow and its sentence.
Focus is never covered
What takes focus clears the page’s bar, the table’s, the pinned header and the floating batch bar.
44 by hand
The checkbox, the name and the ⋯ have a 44 touch target by hand; compact density only exists with a fine pointer.
Motion and sound
Piece
What it does
Spring
With reduced motion
Sorting
Nothing travels; the arrow turns half a turn
drop
The arrow changes without turning
Selecting · hover
The tint comes in
drop
Fades in 200 ms
The batch bar
Changes in place: fades and rises 4
drop
Fades in place
The phone’s batch bar
Comes in from below and leaves
sheet · ebb
Fades
The fixed column’s shadow
Appears when sliding sideways and leaves on the way back
ebb
Fades
The skeleton
A slow pulse while loading
flood
Still
What sounds, on a site
Sorting, paging and opening a row sound tap on a site; in a portal or a console, they stay silent.
A batch sounds what it does
A batch action sounds success or error when it finishes, like any action.
Sound is never the only signal
What changes is also seen and announced in the table’s region.
The list when the columns don’t fit, dates in the current year without the year, the card as a block and as a section only when it is one, one shape per status on the avatar and the sky blue of charts in a light theme.