Ordinary Markdown tables work without a component. For a long table, wrap one table in <Table> to add optional sorting, filtering, and sticky headings in HTML:
Syntax
<Table sort filter sticky>
| Name | Environment | Status |
| --- | --- | --- |
| Accounts | Production | Enabled |
| Invoices | Sandbox | Disabled |
</Table>
Attributes
Sorting since 1.3.0
filter, sticky, and sort are bare boolean attributes. Use them independently or combine them. filter="true" and sort={true} aren't accepted. <Table> takes exactly one Markdown table and no other content. Its complete table, without controls, appears in the Markdown twin.
Try the controls
Activate a heading's sort button to order the rows ascending, then activate it again for descending order. Focus a button and press Enter or Space to sort with the keyboard. Filter this table by a name, environment, or status. Several words must all occur in a row; matching ignores case. Press Escape in the filter box to clear it. Scroll inside the table to keep the headings visible.
| Name | Environment | Status |
|---|---|---|
| Accounts | Production | Enabled |
| Billing | Sandbox | Enabled |
| Catalog | Production | Disabled |
| Delivery | Sandbox | Disabled |
| Events | Production | Enabled |
| Files | Sandbox | Enabled |
| Groups | Production | Disabled |
| History | Sandbox | Enabled |
| Invoices | Production | Enabled |
| Jobs | Sandbox | Disabled |
| Keys | Production | Enabled |
| Limits | Sandbox | Enabled |
| Metrics | Production | Disabled |
| Notes | Sandbox | Enabled |
| Orders | Production | Enabled |
| Profiles | Sandbox | Disabled |
Sort a column
Numeric columns containing only signed decimal numbers, apart from empty cells, sort by value. Other columns use case-insensitive natural text order, so Item 2 precedes Item 10. Dates, currencies, and values with units use text ordering. Equal values keep their source order; empty cells stay last in either direction.
Try numeric sorting in this smaller table. Sorting works without a filter box:
| Item | Requests | Change |
|---|---|---|
| Item 10 | 1200 | -2.5 |
| Item 2 | 80 | 10 |
| Item 1 | 15 | -10 |
| Item 3 | 80 | 2.5 |
| Item 4 |
HTML, Markdown, and agents
Sorting and filtering need JavaScript. Sorting adds consistently sized vector indicators that inherit theme colors, with a visible keyboard focus state and aria-sort on the active heading. Sorting retains the current filter. Without JavaScript, sort controls aren't added, the filter field stays hidden, and all rows remain in their original order. Sticky headings use CSS and still work without JavaScript. On narrow screens the table scrolls horizontally. Keyboard users can focus the scrollable table region.
The Markdown twin contains both complete tables in their original source order. Application exports preserve that source order too; browser sorting doesn't reorder the authored content. Agents and text-only readers don't need the filter to find a row. Use an ordinary Markdown table when these HTML controls are unnecessary.