Data table
Explore a workspace list with sorting, filtering, pagination, and row selection.
Columns
| Owner | Actions | |||
|---|---|---|---|---|
| Design handoff | In review | Avery Chen | ||
| Workspace launch | Approved | Jordan Rivera | ||
| Asset audit | Blocked | Sam Morgan | ||
| Release checklist | Draft | Avery Chen | ||
| Research summary | Approved | Sam Morgan | ||
| Access review | In review | Jordan Rivera |
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Use the copied table
Paste the full snippet into your page body and keep the module imports so filtering, selection, and row actions work. Serve the page and the inlay-assets folder over HTTP so the browser can load those modules.
Use your own data
Edit or duplicate rows in the copied <tbody>. Keep the row’s data-project, data-status, and data-owner values in sync with its cells. Keep the final actions cell from the copied example and give each menu a unique ID. With the default page size, leave the first three rows visible and hide subsequent rows.
Set the initial footer to the actual page count (three rows per page), and disable Next for three rows or fewer. With no rows, start with an empty-state message and disable the select-all checkbox and both pagination buttons.
Use the copied table
Save the full snippet as WorkspaceDataTable.jsx and render it from your app. Adjust the import path if you save it in another folder.
import { WorkspaceDataTable } from "./WorkspaceDataTable.jsx";
export default function App() {
return <WorkspaceDataTable />;
}Use your own data
Replace the local projects array in WorkspaceDataTable.jsx with your records. The example takes no data props. For a page that already fetches projects, edit the component to render a prop in place of that array, keeping the same fields when rendering each row. Use stable row keys if your project names can repeat.
const projects = [
{ name: "Design review", status: "In review", owner: "Avery Chen", tone: "warning" },
{ name: "Release notes", status: "Approved", owner: "Jordan Rivera", tone: "success" },
{ name: "Site audit", status: "Draft", owner: "Sam Morgan" },
{ name: "Support handoff", status: "Blocked", owner: "Avery Chen", tone: "danger" },
];Set the initial footer to the actual page count (three rows per page), and disable Next for three rows or fewer. With no rows, start with an empty-state message and disable the select-all checkbox and both pagination buttons.
Use the copied table
Save the full snippet as WorkspaceDataTable.vue and render it from your app. Adjust the import path if you save it in another folder.
<script setup>
import WorkspaceDataTable from "./WorkspaceDataTable.vue";
</script>
<template>
<WorkspaceDataTable />
</template>Use your own data
Replace the local projects array in WorkspaceDataTable.vue with your records. The example takes no data props. For a page that already fetches projects, edit the component to render a prop in place of that array, keeping the same fields when rendering each row. Use stable row keys if your project names can repeat.
const projects = [
{ name: "Design review", status: "In review", owner: "Avery Chen", tone: "warning" },
{ name: "Release notes", status: "Approved", owner: "Jordan Rivera", tone: "success" },
{ name: "Site audit", status: "Draft", owner: "Sam Morgan" },
{ name: "Support handoff", status: "Blocked", owner: "Avery Chen", tone: "danger" },
];Set the initial footer to the actual page count (three rows per page), and disable Next for three rows or fewer. With no rows, start with an empty-state message and disable the select-all checkbox and both pagination buttons.
Basic table
Start with a semantic table and formatted status cells.
| Project | Status | Owner |
|---|---|---|
| Design handoff | In review | Avery Chen |
| Workspace launch | Approved | Jordan Rivera |
| Asset audit | Blocked | Sam Morgan |
Columns and actions
Choose visible columns, archive a single project, or archive selected projects across pages.
Columns
| Owner | Actions | |||
|---|---|---|---|---|
| Design handoff | In review | Avery Chen | ||
| Workspace launch | Approved | Jordan Rivera | ||
| Asset audit | Blocked | Sam Morgan | ||
| Release checklist | Draft | Avery Chen | ||
| Research summary | Approved | Sam Morgan | ||
| Access review | In review | Jordan Rivera |
Loading results
Reserve space for future rows. Use Load projects to complete the example request.
Loading projects.
Projects could not be loaded
Try the request again to view your workspace projects.
| Project | Status | Owner |
|---|---|---|
| Design handoff | In review | Avery Chen |
| Workspace launch | Approved | Jordan Rivera |
| Asset audit | Blocked | Sam Morgan |
Error and retry
Give a failed request a useful next step. Retry loads the example results.
Projects could not be loaded.
Projects could not be loaded
Try the request again to view your workspace projects.
| Project | Status | Owner |
|---|---|---|
| Design handoff | In review | Avery Chen |
| Workspace launch | Approved | Jordan Rivera |
| Asset audit | Blocked | Sam Morgan |