Did you know?dyk.si

Data Table

Rows and columns of records; click a column header to sort.

<table> + <th aria-sort>

When to use it

For data people compare and sort: invoices, quantities.

Common mistake

On mobile, turn rows into cards.

Accessibility

Use real table markup with header cells and aria-sort.

Name in code

HTML/CSS<table> + <th aria-sort>
ReactTanStack Table / <DataTable>
Jetpack ComposeLazyColumn + Row (no built-in table)
SwiftUITable

Ready prompt for your coding agent

Add a Data Table to this screen. What it is: Rows and columns of records; click a column header to sort. Implement with: <table> + <th aria-sort> (HTML/CSS). Accessibility: Use real table markup with header cells and aria-sort. When to use it: For data people compare and sort: invoices, quantities. Avoid: On mobile, turn rows into cards. Reuse the project's existing design tokens, spacing and component conventions.

Or compose a whole page from this element and others →

Prompts are in English for the most precise results with coding agents.

Often confused with others?

⇄ Card vs. List Item vs. Data Table