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.
| Order | Customer | Status | Total |
|---|---|---|---|
| #1042 |
Sarah Kim |
Paid | €1,240.00 |
| #1041 |
James Wong |
Pending | €485.00 |
| #1040 |
Maya Byrne |
Refunded | −€99.00 |
<div class="av-card av-card--flush-body">
<div class="av-table-wrap">
<table class="av-table">
<caption class="av-visually-hidden">Recent orders</caption>
<thead>
<tr>
<th scope="col">Order</th>
<th scope="col">Customer</th>
<th scope="col">Status</th>
<th scope="col" class="av-table__num">Total</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">#1042</th>
<td>
<span class="av-table__person">
<span class="av-avatar av-avatar--sm" aria-hidden="true">SK</span>
<span>
<span class="av-table__link">Sarah Kim</span><br>
<span class="av-table__person-meta">sarah@northwind.io</span>
</span>
</span>
</td>
<td><span class="av-badge av-badge--success-soft">Paid</span></td>
<td class="av-table__num" data-av-money="124000">€1,240.00</td>
</tr>
<tr>
<th scope="row">#1041</th>
<td>
<span class="av-table__person">
<span class="av-avatar av-avatar--sm" aria-hidden="true">JW</span>
<span>
<span class="av-table__link">James Wong</span><br>
<span class="av-table__person-meta">j.wong@acme.com</span>
</span>
</span>
</td>
<td><span class="av-badge av-badge--warning-soft">Pending</span></td>
<td class="av-table__num" data-av-money="48500">€485.00</td>
</tr>
<tr>
<th scope="row">#1040</th>
<td>
<span class="av-table__person">
<span class="av-avatar av-avatar--sm" aria-hidden="true">MB</span>
<span>
<span class="av-table__link">Maya Byrne</span><br>
<span class="av-table__person-meta">maya@initech.ie</span>
</span>
</span>
</td>
<td><span class="av-badge av-badge--danger-soft">Refunded</span></td>
<td class="av-table__num" data-av-money="-9900">−€99.00</td>
</tr>
</tbody>
</table>
</div>
</div>
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.
| 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 |
<div class="av-card av-card--flush-body">
<div class="av-table-wrap">
<table class="av-table">
<caption class="av-visually-hidden">Wide inventory table</caption>
<thead>
<tr>
<th scope="col">SKU</th>
<th scope="col">Product</th>
<th scope="col">Warehouse</th>
<th scope="col">Supplier</th>
<th scope="col">Lead time</th>
<th scope="col" class="av-table__num">On hand</th>
<th scope="col" class="av-table__num">Committed</th>
<th scope="col" class="av-table__num">Reorder at</th>
<th scope="col" class="av-table__num">Unit cost</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">CB-24-NVY</th>
<td>Canvas backpack, navy</td>
<td>Dublin 12</td>
<td>Northwind Textiles</td>
<td>14 days</td>
<td class="av-table__num">412</td>
<td class="av-table__num">38</td>
<td class="av-table__num">120</td>
<td class="av-table__num" data-av-money="2150">€21.50</td>
</tr>
<tr>
<th scope="row">CB-24-OLV</th>
<td>Canvas backpack, olive</td>
<td>Dublin 12</td>
<td>Northwind Textiles</td>
<td>14 days</td>
<td class="av-table__num">96</td>
<td class="av-table__num">12</td>
<td class="av-table__num">120</td>
<td class="av-table__num" data-av-money="2150">€21.50</td>
</tr>
<tr>
<th scope="row">LT-14-BLK</th>
<td>Mechanical keyboard TKL, black</td>
<td>Cork</td>
<td>Initech Supply</td>
<td>21 days</td>
<td class="av-table__num">1,204</td>
<td class="av-table__num">140</td>
<td class="av-table__num">300</td>
<td class="av-table__num" data-av-money="890">€8.90</td>
</tr>
</tbody>
</table>
</div>
</div>
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.
| Line | Amount |
|---|---|
| Subtotal | €1,240.00 |
| Delivery | €9.00 |
| VAT | €287.27 |
| Line | Amount |
|---|---|
| Subtotal | €1,240.00 |
| Delivery | €9.00 |
| VAT | €287.27 |
<div class="av-grid av-grid--half">
<div class="av-card av-card--flush-body">
<div class="av-table-wrap">
<table class="av-table">
<caption class="av-visually-hidden">With numeric alignment</caption>
<thead><tr><th scope="col">Line</th><th scope="col" class="av-table__num">Amount</th></tr></thead>
<tbody>
<tr><th scope="row">Subtotal</th><td class="av-table__num">€1,240.00</td></tr>
<tr><th scope="row">Delivery</th><td class="av-table__num">€9.00</td></tr>
<tr><th scope="row">VAT</th><td class="av-table__num">€287.27</td></tr>
</tbody>
</table>
</div>
</div>
<div class="av-card av-card--flush-body">
<div class="av-table-wrap">
<table class="av-table">
<caption class="av-visually-hidden">Without numeric alignment</caption>
<thead><tr><th scope="col">Line</th><th scope="col">Amount</th></tr></thead>
<tbody>
<tr><th scope="row">Subtotal</th><td>€1,240.00</td></tr>
<tr><th scope="row">Delivery</th><td>€9.00</td></tr>
<tr><th scope="row">VAT</th><td>€287.27</td></tr>
</tbody>
</table>
</div>
</div>
</div>
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.
| Item | Qty | Amount |
|---|---|---|
| Canvas backpack, navy | 2 | €178.00 |
| Mechanical keyboard TKL | 1 | €29.00 |
| Subtotal | €207.00 | |
| Delivery | €9.00 | |
| Total | €216.00 | |
<div class="av-card av-card--flush-body" style="max-inline-size: 34rem">
<div class="av-table-wrap">
<table class="av-table">
<caption class="av-visually-hidden">Order lines and totals</caption>
<thead>
<tr>
<th scope="col">Item</th>
<th scope="col" class="av-table__num">Qty</th>
<th scope="col" class="av-table__num">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Canvas backpack, navy</th>
<td class="av-table__num">2</td>
<td class="av-table__num" data-av-money="17800">€178.00</td>
</tr>
<tr>
<th scope="row">Mechanical keyboard TKL</th>
<td class="av-table__num">1</td>
<td class="av-table__num" data-av-money="2900">€29.00</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="2">Subtotal</th>
<td class="av-table__num" data-av-money="20700">€207.00</td>
</tr>
<tr>
<th scope="row" colspan="2">Delivery</th>
<td class="av-table__num" data-av-money="900">€9.00</td>
</tr>
<tr>
<th scope="row" colspan="2">Total</th>
<td class="av-table__num" data-av-money="21600">€216.00</td>
</tr>
</tfoot>
</table>
</div>
</div>
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.
| 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 |
<div class="av-card av-card--flush-body" data-av-datagrid data-av-grid-noun="order" data-av-grid-per-page="4">
<div class="av-bulkbar" data-av-grid-bulk>
<span class="av-bulkbar__count" data-av-grid-bulk-count>0 selected</span>
<button class="av-btn av-btn--sm av-btn--soft-danger" type="button" data-av-grid-bulk-delete>
Delete selected
</button>
<button class="av-btn av-btn--sm av-btn--ghost" type="button" data-av-grid-bulk-clear>
Clear selection
</button>
</div>
<div class="av-toolbar">
<label class="av-toolbar__search">
<svg class="av-icon av-icon--sm" aria-hidden="true" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M15.5 15.5L21 21"/></svg>
<input type="search" name="q" placeholder="Search invoices…" data-av-grid-search
aria-label="Search invoices">
</label>
<div class="av-demo-row" role="group" aria-label="Filter by status">
<button class="av-filter-chip" type="button" data-av-grid-filter="all" aria-pressed="true">All</button>
<button class="av-filter-chip" type="button" data-av-grid-filter="paid" aria-pressed="false">Paid</button>
<button class="av-filter-chip" type="button" data-av-grid-filter="overdue" aria-pressed="false">Overdue</button>
</div>
<span class="av-toolbar__count av-toolbar__spacer" data-av-grid-count aria-live="polite"></span>
</div>
<div class="av-table-wrap">
<table class="av-table">
<caption class="av-visually-hidden">Invoices, filterable and sortable</caption>
<thead>
<tr>
<th scope="col" class="av-table__check">
<input class="av-check" type="checkbox" data-av-grid-select-all aria-label="Select all visible invoices" name="grid-select-all">
</th>
<th scope="col">
<button class="av-table__sort" type="button" data-av-sort="ref">Reference</button>
</th>
<th scope="col">
<button class="av-table__sort" type="button" data-av-sort="client">Client</button>
</th>
<th scope="col">
<button class="av-table__sort" type="button" data-av-sort="status">Status</button>
</th>
<th scope="col" class="av-table__num">
<button class="av-table__sort" type="button" data-av-sort="amount">Amount</button>
</th>
<th scope="col">
<button class="av-table__sort" type="button" data-av-sort="due">Due</button>
</th>
</tr>
</thead>
<tbody>
<tr data-av-status="paid">
<td class="av-table__check"><input class="av-check" type="checkbox" data-av-grid-row-check aria-label="Select INV-2041" name="grid-row-check"></td>
<th scope="row" data-av-key="ref" data-av-value="2041">INV-2041</th>
<td data-av-key="client" data-av-value="Northwind">Northwind</td>
<td data-av-key="status" data-av-value="Paid"><span class="av-badge av-badge--success-soft">Paid</span></td>
<td class="av-table__num" data-av-key="amount" data-av-value="1240" data-av-money="124000">€1,240.00</td>
<td data-av-key="due" data-av-value="2026-08-02"><time datetime="2026-08-02">2 Aug 2026</time></td>
</tr>
<tr data-av-status="overdue">
<td class="av-table__check"><input class="av-check" type="checkbox" data-av-grid-row-check aria-label="Select INV-2040" name="grid-row-check"></td>
<th scope="row" data-av-key="ref" data-av-value="2040">INV-2040</th>
<td data-av-key="client" data-av-value="Acme Corp">Acme Corp</td>
<td data-av-key="status" data-av-value="Overdue"><span class="av-badge av-badge--danger-soft">Overdue</span></td>
<td class="av-table__num" data-av-key="amount" data-av-value="9200" data-av-money="920000">€9,200.00</td>
<td data-av-key="due" data-av-value="2026-07-18"><time datetime="2026-07-18">18 Jul 2026</time></td>
</tr>
<tr data-av-status="paid">
<td class="av-table__check"><input class="av-check" type="checkbox" data-av-grid-row-check aria-label="Select INV-2039" name="grid-row-check"></td>
<th scope="row" data-av-key="ref" data-av-value="2039">INV-2039</th>
<td data-av-key="client" data-av-value="Initech">Initech</td>
<td data-av-key="status" data-av-value="Paid"><span class="av-badge av-badge--success-soft">Paid</span></td>
<td class="av-table__num" data-av-key="amount" data-av-value="485" data-av-money="48500">€485.00</td>
<td data-av-key="due" data-av-value="2026-07-30"><time datetime="2026-07-30">30 Jul 2026</time></td>
</tr>
<tr data-av-status="overdue">
<td class="av-table__check"><input class="av-check" type="checkbox" data-av-grid-row-check aria-label="Select INV-2038" name="grid-row-check"></td>
<th scope="row" data-av-key="ref" data-av-value="2038">INV-2038</th>
<td data-av-key="client" data-av-value="Umbrella">Umbrella</td>
<td data-av-key="status" data-av-value="Overdue"><span class="av-badge av-badge--danger-soft">Overdue</span></td>
<td class="av-table__num" data-av-key="amount" data-av-value="315" data-av-money="31500">€315.00</td>
<td data-av-key="due" data-av-value="2026-06-29"><time datetime="2026-06-29">29 Jun 2026</time></td>
</tr>
<tr data-av-status="paid">
<td class="av-table__check"><input class="av-check" type="checkbox" data-av-grid-row-check aria-label="Select INV-2037" name="grid-row-check"></td>
<th scope="row" data-av-key="ref" data-av-value="2037">INV-2037</th>
<td data-av-key="client" data-av-value="Globex">Globex</td>
<td data-av-key="status" data-av-value="Paid"><span class="av-badge av-badge--success-soft">Paid</span></td>
<td class="av-table__num" data-av-key="amount" data-av-value="2680" data-av-money="268000">€2,680.00</td>
<td data-av-key="due" data-av-value="2026-07-11"><time datetime="2026-07-11">11 Jul 2026</time></td>
</tr>
<tr data-av-status="paid">
<td class="av-table__check"><input class="av-check" type="checkbox" data-av-grid-row-check aria-label="Select INV-2036" name="grid-row-check"></td>
<th scope="row" data-av-key="ref" data-av-value="2036">INV-2036</th>
<td data-av-key="client" data-av-value="Soylent">Soylent</td>
<td data-av-key="status" data-av-value="Paid"><span class="av-badge av-badge--success-soft">Paid</span></td>
<td class="av-table__num" data-av-key="amount" data-av-value="74" data-av-money="7400">€74.00</td>
<td data-av-key="due" data-av-value="2026-08-09"><time datetime="2026-08-09">9 Aug 2026</time></td>
</tr>
</tbody>
</table>
</div>
<div class="av-pagination">
<span class="av-pagination__info" data-av-grid-info></span>
<nav class="av-pagination__pages" data-av-grid-pages aria-label="Pagination"></nav>
</div>
</div>
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.
| Product | SKU | Status | On hand |
|---|---|---|---|
| Canvas backpack | AV-1001 | In stock | 142 |
| Leather satchel | AV-1002 | In stock | 38 |
| Commuter pannier | AV-1003 | Low | 6 |
| Weekender holdall | AV-1004 | Low | 4 |
| Smart watch | AV-1005 | Backorder | 0 |
<div data-av-datagrid
data-av-datagrid-library="tabulator"
data-av-datagrid-height="320px"
data-av-datagrid-options='{
"groupBy": "status",
"columns": [
{ "field": "product", "title": "Product" },
{ "field": "sku", "title": "SKU" },
{ "field": "status", "title": "Status" },
{ "field": "stock", "title": "On hand", "hozAlign": "right", "bottomCalc": "sum" }
]
}'>
<table class="av-table">
<caption class="av-visually-hidden">Stock by fulfilment status</caption>
<thead>
<tr>
<th scope="col" data-av-field="product">Product</th>
<th scope="col" data-av-field="sku">SKU</th>
<th scope="col" data-av-field="status">Status</th>
<th scope="col" data-av-field="stock" class="av-table__num">On hand</th>
</tr>
</thead>
<tbody>
<tr><td>Canvas backpack</td><td>AV-1001</td><td>In stock</td><td class="av-table__num" data-av-value="142">142</td></tr>
<tr><td>Leather satchel</td><td>AV-1002</td><td>In stock</td><td class="av-table__num" data-av-value="38">38</td></tr>
<tr><td>Commuter pannier</td><td>AV-1003</td><td>Low</td><td class="av-table__num" data-av-value="6">6</td></tr>
<tr><td>Weekender holdall</td><td>AV-1004</td><td>Low</td><td class="av-table__num" data-av-value="4">4</td></tr>
<tr><td>Smart watch</td><td>AV-1005</td><td>Backorder</td><td class="av-table__num" data-av-value="0">0</td></tr>
</tbody>
</table>
</div>
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.
| Reference | Account | Date | Amount |
|---|
<div class="av-card av-card--flush-body">
<div class="av-virtual" data-av-virtual="transactions"
data-av-virtual-options='{"rowHeight":44,"overscan":6,"pageSize":25}'
style="--av-table-height: 420px"
tabindex="0" role="region" aria-label="Transactions">
<table class="av-table">
<caption class="av-visually-hidden">10,000 transactions</caption>
<thead>
<tr>
<th scope="col">Reference</th>
<th scope="col">Account</th>
<th scope="col">Date</th>
<th scope="col" class="av-table__num">Amount</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
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.
| Order | Customer | Total |
|---|---|---|
| #1042 | Amelia Hart | €284.52 |
| #1041 | Tomas Bauer | €92.00 |
| #1040 | Priya Nair | €1,240.00 |
| #1039 | Joel Mensah | €58.75 |
<div class="av-table-wrap">
<table class="av-table av-table--striped av-table--bordered">
<caption class="av-visually-hidden">Striped and bordered table</caption>
<thead>
<tr><th scope="col">Order</th><th scope="col">Customer</th><th scope="col" class="av-table__num">Total</th></tr>
</thead>
<tbody>
<tr><td>#1042</td><td>Amelia Hart</td><td class="av-table__num">€284.52</td></tr>
<tr><td>#1041</td><td>Tomas Bauer</td><td class="av-table__num">€92.00</td></tr>
<tr><td>#1040</td><td>Priya Nair</td><td class="av-table__num">€1,240.00</td></tr>
<tr><td>#1039</td><td>Joel Mensah</td><td class="av-table__num">€58.75</td></tr>
</tbody>
</table>
</div>
| Order | Customer | Placed | Channel | Total | |
|---|---|---|---|---|---|
| #1042 | Amelia Hart | amelia@example.com | 12 Aug 2026 | Direct | €284.52 |
| #1041 | Tomas Bauer | tomas@example.com | 12 Aug 2026 | Organic | €92.00 |
| #1040 | Priya Nair | priya@example.com | 11 Aug 2026 | Referral | €1,240.00 |
| #1039 | Joel Mensah | joel@example.com | 11 Aug 2026 | €58.75 | |
| #1038 | Sara Lindqvist | sara@example.com | 10 Aug 2026 | Direct | €410.10 |
| #1037 | Diego Ramos | diego@example.com | 10 Aug 2026 | Paid | €76.40 |
<div class="av-table-wrap" style="max-block-size: 13rem; overflow: auto"
role="region" aria-label="Sticky table demo, scrollable" tabindex="0">
<table class="av-table av-table--sticky-head av-table--sticky-col" style="min-inline-size: 44rem">
<caption class="av-visually-hidden">Table with a sticky header and first column</caption>
<thead>
<tr>
<th scope="col">Order</th><th scope="col">Customer</th><th scope="col">Email</th>
<th scope="col">Placed</th><th scope="col">Channel</th><th scope="col" class="av-table__num">Total</th>
</tr>
</thead>
<tbody>
<tr><th scope="row">#1042</th><td>Amelia Hart</td><td>amelia@example.com</td><td>12 Aug 2026</td><td>Direct</td><td class="av-table__num">€284.52</td></tr>
<tr><th scope="row">#1041</th><td>Tomas Bauer</td><td>tomas@example.com</td><td>12 Aug 2026</td><td>Organic</td><td class="av-table__num">€92.00</td></tr>
<tr><th scope="row">#1040</th><td>Priya Nair</td><td>priya@example.com</td><td>11 Aug 2026</td><td>Referral</td><td class="av-table__num">€1,240.00</td></tr>
<tr><th scope="row">#1039</th><td>Joel Mensah</td><td>joel@example.com</td><td>11 Aug 2026</td><td>Email</td><td class="av-table__num">€58.75</td></tr>
<tr><th scope="row">#1038</th><td>Sara Lindqvist</td><td>sara@example.com</td><td>10 Aug 2026</td><td>Direct</td><td class="av-table__num">€410.10</td></tr>
<tr><th scope="row">#1037</th><td>Diego Ramos</td><td>diego@example.com</td><td>10 Aug 2026</td><td>Paid</td><td class="av-table__num">€76.40</td></tr>
</tbody>
</table>
</div>
| Order | Customer | Status | Total |
|---|---|---|---|
| #1042 | Amelia Hart | Paid | €284.52 |
| #1041 | Tomas Bauer | Pending | €92.00 |
<div class="av-table-wrap">
<table class="av-table av-table--cards">
<caption class="av-visually-hidden">Table that becomes cards on narrow screens</caption>
<thead>
<tr><th scope="col">Order</th><th scope="col">Customer</th><th scope="col">Status</th><th scope="col" class="av-table__num">Total</th></tr>
</thead>
<tbody>
<tr>
<th scope="row" data-av-label="Order">#1042</th>
<td data-av-label="Customer">Amelia Hart</td>
<td data-av-label="Status"><span class="av-badge av-badge--success-soft">Paid</span></td>
<td data-av-label="Total" class="av-table__num">€284.52</td>
</tr>
<tr>
<th scope="row" data-av-label="Order">#1041</th>
<td data-av-label="Customer">Tomas Bauer</td>
<td data-av-label="Status"><span class="av-badge av-badge--warning-soft">Pending</span></td>
<td data-av-label="Total" class="av-table__num">€92.00</td>
</tr>
</tbody>
</table>
</div>
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.
| Expand | Order | Customer | Total |
|---|---|---|---|
| #1042 | Amelia Hart | €284.52 | |
| Two canvas backpacks and one mechanical keyboard, shipped 12 August from Dublin 12. | |||
| #1041 | Tomas Bauer | €92.00 | |
| One olive backpack, awaiting payment confirmation. | |||
<div class="av-table-wrap">
<table class="av-table">
<caption class="av-visually-hidden">Orders with expandable detail</caption>
<thead>
<tr><th scope="col"><span class="av-visually-hidden">Expand</span></th><th scope="col">Order</th><th scope="col">Customer</th><th scope="col" class="av-table__num">Total</th></tr>
</thead>
<tbody>
<tr>
<td><button class="av-table__expand" type="button" data-av-row-expand
aria-expanded="false" aria-label="Show detail for order 1042"><svg class="av-icon" aria-hidden="true" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6"/></svg></button></td>
<th scope="row">#1042</th><td>Amelia Hart</td><td class="av-table__num">€284.52</td>
</tr>
<tr class="av-table__detail" id="ui-detail-1042" hidden>
<td colspan="4">Two canvas backpacks and one mechanical keyboard, shipped 12 August from Dublin 12.</td>
</tr>
<tr>
<td><button class="av-table__expand" type="button" data-av-row-expand
aria-expanded="false" aria-label="Show detail for order 1041"><svg class="av-icon" aria-hidden="true" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6"/></svg></button></td>
<th scope="row">#1041</th><td>Tomas Bauer</td><td class="av-table__num">€92.00</td>
</tr>
<tr class="av-table__detail" id="ui-detail-1041" hidden>
<td colspan="4">One olive backpack, awaiting payment confirmation.</td>
</tr>
</tbody>
</table>
</div>
| SKU | Product | Price |
|---|---|---|
| CB-24-NVY | €21.50 | |
| CB-24-OLV | €21.50 |
<div class="av-table-wrap">
<table class="av-table">
<caption class="av-visually-hidden">Editable product names</caption>
<thead>
<tr><th scope="col">SKU</th><th scope="col">Product</th><th scope="col" class="av-table__num">Price</th></tr>
</thead>
<tbody>
<tr>
<th scope="row">CB-24-NVY</th>
<td><input class="av-inline-edit" data-av-inline-edit value="Canvas backpack, navy" aria-label="Product name for CB-24-NVY" name="inline-edit"></td>
<td class="av-table__num">€21.50</td>
</tr>
<tr>
<th scope="row">CB-24-OLV</th>
<td><input class="av-inline-edit" data-av-inline-edit value="Canvas backpack, olive" aria-label="Product name for CB-24-OLV" name="inline-edit"></td>
<td class="av-table__num">€21.50</td>
</tr>
</tbody>
</table>
</div>
| SKU | Product | On hand | Price |
|---|---|---|---|
| CB-24-NVY | Canvas backpack, navy | 412 | €21.50 |
| LS-13-GRY | Mechanical keyboard, grey | 88 | €14.00 |
<fieldset class="av-panel av-mb-3" data-av-columns="#ui-cols-table">
<legend class="av-panel__title">Columns</legend>
<label class="av-columns__item"><input type="checkbox" class="av-check" data-av-col="sku" checked name="col"> SKU</label>
<label class="av-columns__item"><input type="checkbox" class="av-check" data-av-col="name" checked name="col"> Product</label>
<label class="av-columns__item"><input type="checkbox" class="av-check" data-av-col="stock" checked name="col"> On hand</label>
<label class="av-columns__item"><input type="checkbox" class="av-check" data-av-col="price" checked name="col"> Price</label>
</fieldset>
<div class="av-table-wrap">
<table class="av-table" id="ui-cols-table">
<caption class="av-visually-hidden">Inventory with selectable columns</caption>
<thead>
<tr>
<th scope="col" data-av-col="sku">SKU</th>
<th scope="col" data-av-col="name">Product</th>
<th scope="col" data-av-col="stock" class="av-table__num">On hand</th>
<th scope="col" data-av-col="price" class="av-table__num">Price</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" data-av-col="sku">CB-24-NVY</th>
<td data-av-col="name">Canvas backpack, navy</td>
<td data-av-col="stock" class="av-table__num">412</td>
<td data-av-col="price" class="av-table__num">€21.50</td>
</tr>
<tr>
<th scope="row" data-av-col="sku">LS-13-GRY</th>
<td data-av-col="name">Mechanical keyboard, grey</td>
<td data-av-col="stock" class="av-table__num">88</td>
<td data-av-col="price" class="av-table__num">€14.00</td>
</tr>
</tbody>
</table>
</div>
| Category | Products |
|---|---|
| Bags | 124 |
| Backpacks | 58 |
| Canvas | 31 |
| Leather | 27 |
| Totes | 66 |
| Accessories | 203 |
<div class="av-table-wrap">
<table class="av-table av-table--tree" data-av-tree-table role="treegrid">
<caption class="av-visually-hidden">Category tree</caption>
<thead>
<tr><th scope="col">Category</th><th scope="col" class="av-table__num">Products</th></tr>
</thead>
<tbody>
<tr data-av-depth="0" aria-expanded="true">
<th scope="row" style="--av-tree-depth: 0">
<button class="av-table__expand" type="button" aria-expanded="true" aria-label="Collapse Bags"><svg class="av-icon" aria-hidden="true" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6"/></svg></button>Bags
</th>
<td class="av-table__num">124</td>
</tr>
<tr data-av-depth="1" aria-expanded="true">
<th scope="row" style="--av-tree-depth: 1">
<button class="av-table__expand" type="button" aria-expanded="true" aria-label="Collapse Backpacks"><svg class="av-icon" aria-hidden="true" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6"/></svg></button>Backpacks
</th>
<td class="av-table__num">58</td>
</tr>
<tr data-av-depth="2">
<th scope="row" style="--av-tree-depth: 2"><span class="av-table__leaf"></span>Canvas</th>
<td class="av-table__num">31</td>
</tr>
<tr data-av-depth="2">
<th scope="row" style="--av-tree-depth: 2"><span class="av-table__leaf"></span>Leather</th>
<td class="av-table__num">27</td>
</tr>
<tr data-av-depth="1">
<th scope="row" style="--av-tree-depth: 1"><span class="av-table__leaf"></span>Totes</th>
<td class="av-table__num">66</td>
</tr>
<tr data-av-depth="0">
<th scope="row" style="--av-tree-depth: 0"><span class="av-table__leaf"></span>Accessories</th>
<td class="av-table__num">203</td>
</tr>
</tbody>
</table>
</div>