Data management table
A data-management table composed from tables, checkboxes, pagination, filters, selected and zero-selection bulk actions, and filtered empty states.
Use a data-management view when users need to filter records, select several rows and apply an action to the selection. These examples include populated, unselected and empty-result states so the available actions stay understandable throughout the task.
The HTML tabs show essential markup; layout wrappers, repeated content, secondary details and demo behavior are omitted.
Manage customer records
Keep filters separate from bulk changes, give every row checkbox an accessible record name and submit selected identifiers with the chosen action. A Menu keeps related export formats compact without hiding the primary archive action. Accent identifies the Pro plan tier while status badges retain their lifecycle meaning. Keep the action area visible when nothing is selected so its availability does not depend on layout changes.
Customer records
Review account ownership, plans and lifecycle status.
Essential markup
<h3 id="data-management-title">Customer records</h3>
<form role="search" method="get" action="/examples/data-management-table/" aria-label="Filter customer records">
<label class="form-label" for="dataManagementSearch">Search records</label>
<input class="form-control" id="dataManagementSearch" name="query" type="search" />
<!-- Plan and status selects omitted. -->
<button class="btn btn-solid btn-primary" type="submit">Apply filters</button>
</form>
<form action="/records/bulk" method="post" aria-label="Customer record bulk actions">
<div role="group" aria-label="Actions for selected records">
<p>2 records selected</p>
<div class="menu" data-menu>
<button class="btn btn-outline btn-secondary menu-trigger" type="button" data-menu-trigger>Export selected</button>
<div class="menu-popup" role="menu" popover="manual" hidden data-menu-popup>
<button class="menu-item" type="submit" role="menuitem" name="action" value="export-csv">
<span class="menu-item-label">Export as CSV</span>
</button>
<!-- PDF export uses the same submit contract. -->
</div>
</div>
<button class="btn btn-solid btn-primary" type="submit" name="action" value="archive">Archive selected</button>
</div>
<div class="table-responsive" role="region" tabindex="0" aria-labelledby="data-management-title">
<table class="table table-striped table-hover">
<caption>Customer record management</caption>
<thead><tr><th scope="col">Select</th><th scope="col">Customer</th><th scope="col">Plan</th><th scope="col">Status</th></tr></thead>
<tbody>
<tr>
<td><div class="form-check"><input class="form-check-input" name="recordIds" type="checkbox" value="acme-labs" aria-labelledby="record-acme-name" checked /></div></td>
<th scope="row" id="record-acme-name">Acme Labs</th>
<td><span class="badge badge-outline text-accent">Pro</span></td>
<td><span class="badge bg-success">Active</span></td>
</tr>
<!-- Remaining records, owner and updated columns omitted. -->
</tbody>
</table>
</div>
</form>
<!-- Pagination omitted. -->No records selected
Keep bulk actions in a stable location before rows are selected, but disable them with their native disabled state. Pair the unavailable actions with concise guidance that explains how to enable them.
Customer records
Choose records before applying a bulk action.
Essential markup
<h3 id="data-management-zero-title">Customer records</h3>
<form action="/records/bulk" method="post" aria-label="Customer record bulk actions with no selection">
<div class="card bg-surface-hover p-3" role="group" aria-label="Unavailable bulk actions">
<p>No records selected</p>
<p>Select one or more rows to enable bulk actions.</p>
<!-- Keep the export menu trigger disabled; its popup is omitted here. -->
<button class="btn btn-outline btn-secondary" type="button" disabled>Export selected</button>
<button class="btn btn-solid btn-primary" type="submit" name="action" value="archive" disabled>Archive selected</button>
</div>
<div class="table-responsive" role="region" tabindex="0" aria-labelledby="data-management-zero-title">
<table class="table table-striped table-hover">
<caption>Customer records with no current selection</caption>
<thead><tr><th scope="col">Select</th><th scope="col">Customer</th></tr></thead>
<tbody>
<tr>
<td><div class="form-check"><input class="form-check-input" name="recordIds" type="checkbox" value="acme-labs" aria-labelledby="zero-record-acme-name" /></div></td>
<th scope="row" id="zero-record-acme-name">Acme Labs</th>
</tr>
<!-- Remaining records and columns omitted. -->
</tbody>
</table>
</div>
</form>No matching records
Keep the applied filters visible when they produce no results, then replace the table and pagination with the Empty State. Give users one direct way to broaden or clear the query.
Essential markup
<section aria-labelledby="data-management-empty-title">
<div role="group" aria-label="Active customer filters">
<span class="chip chip-primary chip-outline">
<span class="chip-label">Plan: Business</span>
<button class="chip-action" type="button" aria-label="Remove Business plan filter">
<span aria-hidden="true">×</span>
</button>
</span>
<!-- Paused status chip omitted. -->
</div>
<div class="card">
<div class="empty-state" aria-labelledby="data-management-empty-title" aria-describedby="data-management-empty-description">
<h3 class="empty-state-title" id="data-management-empty-title">No matching customer records</h3>
<p class="empty-state-description" id="data-management-empty-description">No Business accounts currently have the Paused status.</p>
<div class="empty-state-actions">
<a class="btn btn-solid btn-primary" href="/examples/data-management-table/">Clear all filters</a>
</div>
</div>
</div>
</section>Built with
- Table and Pagination for structured records and navigation between result pages.
- Input, Select and Checkbox for filters and row selection.
- Menu and Button for export choices and bulk actions.
- Chip and Badge for active filters, plans and record statuses.
- Empty state for a filter result with no matches and a direct recovery action.
- Card, Flex and Spacings for a stable surface and wrapping toolbars.