Table
A content-layer Liquid Glass table designed for clear readability beneath floating glass controls.
Liquid Glass Table provides a crisp, restrained content-layer presentation over Base Table. Following Apple’s Liquid Glass material hierarchy, tables and data rows stay non-glass and opaque so tabular data remains highly legible while floating Liquid Glass controls—such as toolbars, buttons, and action menus—elevate cleanly above it without stacking glass on glass.
For sorting, filtering, pagination, and row selection, use Data Table.
Preview
Section titled “Preview”<div class="w-full overflow-x-auto">
<liquid-glass-table-root>
<liquid-glass-table-caption>
A list of your recent invoices.
</liquid-glass-table-caption>
<liquid-glass-table-row section="header" last-in-section>
<liquid-glass-table-header-cell
header-key="invoice"
header-kind="column"
style="width: 100px"
>
Invoice
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="status"
header-kind="column"
>
Status
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="method"
header-kind="column"
>
Method
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="amount"
header-kind="column"
style="text-align: end"
>
Amount
</liquid-glass-table-header-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv001"
header-kind="row"
>
INV001
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Paid</liquid-glass-table-cell>
<liquid-glass-table-cell>Credit Card</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$250.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv002"
header-kind="row"
>
INV002
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Pending</liquid-glass-table-cell>
<liquid-glass-table-cell>PayPal</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$150.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv003"
header-kind="row"
>
INV003
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Unpaid</liquid-glass-table-cell>
<liquid-glass-table-cell>
Bank Transfer
</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$350.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv004"
header-kind="row"
>
INV004
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Paid</liquid-glass-table-cell>
<liquid-glass-table-cell>Credit Card</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$450.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv005"
header-kind="row"
>
INV005
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Paid</liquid-glass-table-cell>
<liquid-glass-table-cell>PayPal</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$550.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv006"
header-kind="row"
>
INV006
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Pending</liquid-glass-table-cell>
<liquid-glass-table-cell>
Bank Transfer
</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$200.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body" last-in-section>
<liquid-glass-table-header-cell
header-key="inv007"
header-kind="row"
>
INV007
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Unpaid</liquid-glass-table-cell>
<liquid-glass-table-cell>Credit Card</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$300.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="footer" last-in-section>
<liquid-glass-table-header-cell
header-key="total"
header-kind="row"
>
Total
</liquid-glass-table-header-cell>
<liquid-glass-table-cell></liquid-glass-table-cell>
<liquid-glass-table-cell></liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$2,500.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
</liquid-glass-table-root>
</div>Installation
Section titled “Installation”Available starting in 0.3.0-rc.1 and later releases. Import the parts from @proto.ui/prototypes-liquid-glass/table:
import { liquidGlassTableRoot, liquidGlassTableCaption, liquidGlassTableRow, liquidGlassTableHeaderCell, liquidGlassTableCell,} from '@proto.ui/prototypes-liquid-glass/table';<div class="w-full overflow-x-auto"> <liquid-glass-table-root> <liquid-glass-table-caption>A list of your recent invoices.</liquid-glass-table-caption> <liquid-glass-table-row section="header" last-in-section> <liquid-glass-table-header-cell header-key="invoice" header-kind="column" style="width: 100px" > Invoice </liquid-glass-table-header-cell> <liquid-glass-table-header-cell header-key="status" header-kind="column" >Status</liquid-glass-table-header-cell > <liquid-glass-table-header-cell header-key="method" header-kind="column" >Method</liquid-glass-table-header-cell > <liquid-glass-table-header-cell header-key="amount" header-kind="column" style="text-align: end" > Amount </liquid-glass-table-header-cell> </liquid-glass-table-row> <liquid-glass-table-row section="body" last-in-section> <liquid-glass-table-header-cell header-key="inv001" header-kind="row" >INV001</liquid-glass-table-header-cell > <liquid-glass-table-cell>Paid</liquid-glass-table-cell> <liquid-glass-table-cell>Credit Card</liquid-glass-table-cell> <liquid-glass-table-cell style="text-align: end">$250.00</liquid-glass-table-cell> </liquid-glass-table-row> </liquid-glass-table-root></div>Content Layer & Material Hierarchy
Section titled “Content Layer & Material Hierarchy”Root (content layer, no glass material)├── Caption (caption-bottom + mt-4)├── Row (section="header")│ └── HeaderCell (align-middle + text-start)├── Row (section="body")│ ├── HeaderCell (headerKind="row")│ └── Cell (headers=[...])└── Row (section="footer") ├── HeaderCell (headerKind="row") └── Cell (headers=[...])- No glass-on-glass: Table parts intentionally omit translucent blur and optical material carriers so dense data stays sharp underneath floating Liquid Glass overlays.
- Alignment & accessibility fallbacks: Cells use
align-middleso inline action triggers align cleanly; reduced-motion disables row hover transitions, and forced-colors mode promotes row dividers toborder-foreground. - Logical direction:
CaptionandHeaderCellalign viatext-startfor automatic RTL mirroring.
Examples
Section titled “Examples”Footer
Section titled “Footer”Use section="footer" for summary rows and lastInSection to withdraw the trailing bottom rule:
<div class="w-full overflow-x-auto">
<liquid-glass-table-root>
<liquid-glass-table-caption>
A list of your recent invoices.
</liquid-glass-table-caption>
<liquid-glass-table-row section="header" last-in-section>
<liquid-glass-table-header-cell
header-key="invoice"
header-kind="column"
style="width: 100px"
>
Invoice
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="status"
header-kind="column"
>
Status
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="method"
header-kind="column"
>
Method
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="amount"
header-kind="column"
style="text-align: end"
>
Amount
</liquid-glass-table-header-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv001"
header-kind="row"
>
INV001
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Paid</liquid-glass-table-cell>
<liquid-glass-table-cell>Credit Card</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$250.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv002"
header-kind="row"
>
INV002
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Pending</liquid-glass-table-cell>
<liquid-glass-table-cell>PayPal</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$150.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body" last-in-section>
<liquid-glass-table-header-cell
header-key="inv003"
header-kind="row"
>
INV003
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>Unpaid</liquid-glass-table-cell>
<liquid-glass-table-cell>
Bank Transfer
</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$350.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="footer" last-in-section>
<liquid-glass-table-header-cell
header-key="total"
header-kind="row"
>
Total
</liquid-glass-table-header-cell>
<liquid-glass-table-cell></liquid-glass-table-cell>
<liquid-glass-table-cell></liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$750.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
</liquid-glass-table-root>
</div>Actions
Section titled “Actions”Pair a crisp content-layer table with floating Liquid Glass DropdownMenu controls for row-level actions:
<div class="w-full overflow-x-auto">
<liquid-glass-table-root>
<liquid-glass-table-row section="header" last-in-section>
<liquid-glass-table-header-cell
header-key="product"
header-kind="column"
>
Product
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="price"
header-kind="column"
>
Price
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="actions"
header-kind="column"
style="text-align: end"
>
Actions
</liquid-glass-table-header-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="mouse"
header-kind="row"
>
Wireless Mouse
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>$29.99</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
<liquid-glass-dropdown-root>
<liquid-glass-dropdown-trigger>
<span aria-hidden="true">⋯</span>
<span class="sr-only">Open menu</span>
</liquid-glass-dropdown-trigger>
<liquid-glass-dropdown-content align="end">
<liquid-glass-dropdown-item value="edit">
Edit
</liquid-glass-dropdown-item>
<liquid-glass-dropdown-item value="duplicate">
Duplicate
</liquid-glass-dropdown-item>
<liquid-glass-dropdown-separator></liquid-glass-dropdown-separator>
<liquid-glass-dropdown-item value="delete">
Delete
</liquid-glass-dropdown-item>
</liquid-glass-dropdown-content>
</liquid-glass-dropdown-root>
</liquid-glass-table-cell>
</liquid-glass-table-row>
</liquid-glass-table-root>
</div>Wrap the table in a dir="rtl" container to mirror logical start/end alignment across caption, headers, and numeric cells:
<div dir="rtl" class="w-full overflow-x-auto">
<liquid-glass-table-root>
<liquid-glass-table-caption>
قائمة بفواتيرك الأخيرة.
</liquid-glass-table-caption>
<liquid-glass-table-row section="header" last-in-section>
<liquid-glass-table-header-cell
header-key="invoice"
header-kind="column"
style="width: 100px"
>
الفاتورة
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="status"
header-kind="column"
>
الحالة
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="method"
header-kind="column"
>
الطريقة
</liquid-glass-table-header-cell>
<liquid-glass-table-header-cell
header-key="amount"
header-kind="column"
style="text-align: end"
>
المبلغ
</liquid-glass-table-header-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="body">
<liquid-glass-table-header-cell
header-key="inv001"
header-kind="row"
>
INV001
</liquid-glass-table-header-cell>
<liquid-glass-table-cell>مدفوع</liquid-glass-table-cell>
<liquid-glass-table-cell>
بطاقة ائتمانية
</liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$250.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
<liquid-glass-table-row section="footer" last-in-section>
<liquid-glass-table-header-cell
header-key="total"
header-kind="row"
>
المجموع
</liquid-glass-table-header-cell>
<liquid-glass-table-cell></liquid-glass-table-cell>
<liquid-glass-table-cell></liquid-glass-table-cell>
<liquid-glass-table-cell style="text-align: end">
$1,200.00
</liquid-glass-table-cell>
</liquid-glass-table-row>
</liquid-glass-table-root>
</div>Root & Caption
Section titled “Root & Caption”Root and Caption declare no props. Root exposes getStructure() for inspecting the row/column hierarchy and header relationships.
| Prop | Type | Default | Description |
|---|---|---|---|
section | 'header' 'body' 'footer' | 'body' | Visual section membership: subtle body hover highlight or muted summary footer |
lastInSection | boolean | false | Suppresses the bottom divider on final body or footer rows |
HeaderCell
Section titled “HeaderCell”| Prop | Type | Default | Description |
|---|---|---|---|
headerKey | string | '' | Unique header identifier referenced by Cell.headers |
headerKind | 'column' 'row' | undefined | Declares columnheader or rowheader semantics |
headers | readonly string[] | [] | Ordered parent header keys for multi-level header hierarchies |
rowSpan | number | 1 | Positive integer accessible row span |
columnSpan | number | 1 | Positive integer accessible column span |
| Prop | Type | Default | Description |
|---|---|---|---|
headers | readonly string[] | [] | Ordered list of headerKey references |
rowSpan | number | 1 | Positive integer accessible row span |
columnSpan | number | 1 | Positive integer accessible column span |