Skip to main content

System status

Memory 2.4 GB of 3.8 GB
Disk 98 GB of 116 GB

Over 80%: clear old logs and images before it fills.

Health
Every check passed
CPU load
0.42 on 2 cores
Signed in
12 online
Guests
48 online
Queue
3 waiting, 0 failed

Messages 3 unread

HR Team

4 members · 2 online

Today
Jessy Ellis

Next week we close the project. Any questions before we do?

You

That is excellent news.

Read

Tom Brennan

I have been through the features — cannot wait to demo them.

You

Haven't seen the build yet — looking now.

You

Checking the build now.

Delivered

Jessy is typing…

Jane Perez wants to join

1 day ago · Design Team

Notifications 3 new

  • Today
  • Priya Raman asked you to approve access to Northwind Trading

    Unread. · Members

    Nora O’Brien

    nora@northwind.example · Member

  • Sam Okafor attached a file to Q3 forecast

    Unread. · Finance

    q3-forecast.xlsx

    Spreadsheet · 248 KB

  • Three variants are below their reorder point

    Unread. · Inventory

    Restock before the weekend

    Due 16 August 2026

    Stock Urgent
  • Earlier
  • Your email address is verified

    · Security

  • Marta Kowalski mentioned you in Autumn drop

    · Marketing

  1. UI kit
  2. Tables

Tables

A real <table> underneath, always. Div grids lose row and column association, keyboard table navigation, and the browser's own find-in-page — and they have to reimplement every one of those badly.

Basic table

Every column header is a <th scope="col"> and the row's identifying cell is a <th scope="row">. That pairing is what lets a screen reader say "Order #1042, Status, Paid" instead of reading you a lone word. The <caption> is visually hidden, not absent.

Rows and headers

Put it in a card with --flush-body so the table meets the card's edges.

Recent orders
Order Customer Status Total
#1042 Sarah Kim
sarah@northwind.io
Paid €1,240.00
#1041 James Wong
j.wong@acme.com
Pending €485.00
#1040 Maya Byrne
maya@initech.ie
Refunded −€99.00

Overflow

.av-table-wrap is not optional. A grid or flex item's automatic minimum size is its content's min-content width, so a wide table grows its track past the viewport rather than scrolling — and because .av-content then absorbs the excess, a document-level overflow check still passes while the page is visibly broken. The wrapper gives the table its own scroll container, and it is keyboard-scrollable because it is focusable.

A table wider than its column

Scroll it sideways. The page behind it does not move.

Wide inventory table
SKU Product Warehouse Supplier Lead time On hand Committed Reorder at Unit cost
CB-24-NVY Canvas backpack, navy Dublin 12 Northwind Textiles 14 days 412 38 120 €21.50
CB-24-OLV Canvas backpack, olive Dublin 12 Northwind Textiles 14 days 96 12 120 €21.50
LT-14-BLK Mechanical keyboard TKL, black Cork Initech Supply 21 days 1,204 140 300 €8.90

Numeric columns

.av-table__num aligns to the end of the column and switches on tabular figures, so the digits line up vertically. Put it on the header as well as the cells — a right-aligned column under a left-aligned heading reads as a mistake.

Tabular figures

The same three rows with and without. Look at the decimal points.

With numeric alignment
LineAmount
Subtotal€1,240.00
Delivery€9.00
VAT€287.27
Without numeric alignment
LineAmount
Subtotal€1,240.00
Delivery€9.00
VAT€287.27

Totals

Totals belong in <tfoot>, not in a final <tbody> row. It is what tells assistive technology the row is a summary, and it is what makes the row repeat when the table breaks across printed pages.

Line items with a foot

Order lines and totals
Item Qty Amount
Canvas backpack, navy 2 €178.00
Mechanical keyboard TKL 1 €29.00
Subtotal €207.00
Delivery €9.00
Total €216.00

Data grid

Search, status filters, column sort, row selection with bulk actions, and pagination — all driven from attributes on markup that is already correct without JavaScript. Sort reads data-av-value rather than the cell's text, which is how a date column sorts by date and a money column by amount instead of alphabetically.

Live grid

Search, sort a column, tick a row.

0 selected
Invoices, filterable and sortable
INV-2041 Northwind Paid €1,240.00
INV-2040 Acme Corp Overdue €9,200.00
INV-2039 Initech Paid €485.00
INV-2038 Umbrella Overdue €315.00
INV-2037 Globex Paid €2,680.00
INV-2036 Soylent Paid €74.00

Advanced grid

data-av-datagrid-library="tabulator" hands the same hook to Tabulator instead of the built-in grid, for the things the built-in one deliberately does not do: row grouping, column calculations, frozen columns, tree data, inline editing. It is the largest chunk in the bundle by a wide margin and nothing loads it unless a page asks — which is the whole reason the built-in grid stays the default. The rows come from the server-rendered table below it, not from a fetch, so they are readable before any JavaScript runs.

Grouped, with a column total

data-av-field on each th names the column, and data-av-value on a cell is what gets read — for the same reason the built-in grid sorts on it: €1,240.00 orders between €1,199 and €13 as a string.

Stock by fulfilment status
Product SKU Status On hand
Canvas backpackAV-1001In stock142
Leather satchelAV-1002In stock38
Commuter pannierAV-1003Low6
Weekender holdallAV-1004Low4
Smart watchAV-1005Backorder0

Virtual scroll

Ten thousand rows, about thirty in the document. The window is a scroll offset divided by the row height, and two spacer <tr>s stand in for everything outside it — so the scrollbar is the length of the whole set while the browser only ever lays out what you can see. Rows stay inside a real table, which is why the spacers are rows rather than the <div>s a list virtualiser would use: a row that leaves the column model takes the column alignment with it.

A screen reader cannot perceive a row that is not in the DOM. The table carries aria-rowcount and every rendered row its true aria-rowindex, which is the ARIA-specified answer and still only half of one — so the component builds its own Switch to paged view control rather than leaving that to the page that forgot it.

10,000 transactions

Scroll it, then switch to the paged view. rowHeight is required — the module writes it back as --av-virtual-row so the arithmetic and the painted box cannot disagree.

10,000 transactions
Reference Account Date Amount

Variants

Modifiers on .av-table. They compose — striped, bordered and sticky can all be on the same table — because each one owns a different property.

Striped and bordered

Striping is applied as a background-image, not a background-color. The hover rule already owns background-color, so a stripe set there would win on odd rows and lose on even ones, and the pointer highlight would flicker on and off down the table.

Striped and bordered table
OrderCustomerTotal
#1042Amelia Hart€284.52
#1041Tomas Bauer€92.00
#1040Priya Nair€1,240.00
#1039Joel Mensah€58.75

Sticky header and first column

Scroll the box in both directions. The corner cell belongs to *both* sticky regions, so the header is raised one step to win it — left equal, whichever paints later takes the corner, and the result changes with source order rather than intent.

Table with a sticky header and first column
OrderCustomerEmail PlacedChannelTotal
#1042Amelia Hartamelia@example.com12 Aug 2026Direct€284.52
#1041Tomas Bauertomas@example.com12 Aug 2026Organic€92.00
#1040Priya Nairpriya@example.com11 Aug 2026Referral€1,240.00
#1039Joel Mensahjoel@example.com11 Aug 2026Email€58.75
#1038Sara Lindqvistsara@example.com10 Aug 2026Direct€410.10
#1037Diego Ramosdiego@example.com10 Aug 2026Paid€76.40

Card table

Below 768px each row becomes a stacked card and the column name comes from data-av-label on the cell. The label lives in an attribute rather than a duplicated hidden column, because a hidden label column is read out by a screen reader on every row. Narrow the window to see it.

Table that becomes cards on narrow screens
OrderCustomerStatusTotal
#1042 Amelia Hart Paid €284.52
#1041 Tomas Bauer Pending €92.00

Interactive rows

Expandable detail, inline editing, a column chooser and a tree — each one kept inside the table's own column model rather than layered on top of it.

Expandable rows

The detail row is a real <tr> hidden with hidden, not a panel positioned underneath — so its content stays inside the table's column model and in reading order. It carries a single <td colspan>, because a detail row that reproduces the column structure is announced as a data row full of empty cells.

Orders with expandable detail
ExpandOrderCustomerTotal
#1042Amelia Hart€284.52
#1041Tomas Bauer€92.00

Inline edit

A real <input> styled to look like text. A contenteditable span would look identical and lose the platform's undo stack, autofill, form association and mobile keyboard hints. Enter commits, Escape reverts to the value the field had on focus — without Escape there is no way out of a mistyped cell except retyping the original from memory.

Editable product names
SKUProductPrice
CB-24-NVY €21.50
CB-24-OLV €21.50

Column chooser

Hiding a column writes one attribute on the table and toggles a class on that column's cells — the alternative, a generated rule per column, restyles the whole table on every toggle and a thousand-row table notices. The last visible column cannot be hidden: a table with no columns is a box of nothing, and the control that would bring them back is no longer visible. The choice persists per table id.

Columns
Inventory with selectable columns
SKU Product On hand Price
CB-24-NVY Canvas backpack, navy 412 €21.50
LS-13-GRY Mechanical keyboard, grey 88 €14.00

Tree table

Rows are flat in the DOM with a depth attribute, not nested. Nesting real tables breaks column alignment between levels, and nesting <div>s loses the column model entirely. Collapsing a parent hides every following row of greater depth up to the next row at its own depth or shallower — and re-opening it does *not* reveal grandchildren whose own parent is still collapsed, which is what stops a branch flattening when you close and reopen it.

Category tree
CategoryProducts
Bags 124
Backpacks 58
Canvas 31
Leather 27
Totes 66
Accessories 203

Dashboard Orders Products Customers Account Settings

Keyboard shortcuts