For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/patterns/entity-table.md.

Entity table

Components: Table, TableActionBar, TableActionBarSelection, TableEmptyState, Badge, Tag, OverflowList, Avatar

+11 more

AvatarContent, AvatarName, AvatarDescription, Code, FormatDateTime, DropdownMenu, DropdownMenuItem, Button, Tooltip, Switch, EmptyState

One Table with a fixed cell vocabulary, a row menu in the master cell and a bulk bar.

When to use

NeedUseNot
A list of entities on a pageTable inside PageContentA div grid, a Card per row
A list in a drawer or dialogThe same Table inside DrawerBody or DialogBody (from @wallarm-org/design-system/Dialog)A custom bordered list
Actions on one rowmeta.renderMenuAction on the master (first) columnA trailing actions column, buttons repeated in every row
Actions on many rowsonRowSelectionChange plus TableActionBarYour own floating bar
Details of one entityAttribute in a drawerA two-column Table
Kanban, preference matrixProduct codeThis pattern

Use only these cells.

DataCellNot
PersonAvatar size='md' with AvatarNameimg plus span
Second lineAvatarDescriptionTwo Text lines
StatusBadge variant='dotted' type='secondary' color=…Colored text, a raw dot
Locked rowBadge with Lock in a TooltipA bare lock icon
Groups, rolesOverflowList of TagJoined text, custom "+N"
ID, key, hashCode size='m'A monospace span
Recent timeFormatDateTime format='relative'toLocaleString()
Exact timeFormatDateTime format='datetime'Two cells
Count, metricThe raw numbermeta.align
On/off settingSwitch with SwitchControlCheckbox
Missing value'—' (em dash)0, N/A, an empty cell

Rules

Layout and spacing

  • The first column is pinned and never hideable: put the entity name there.
  • Table owns its frame, borders, padding and header. Never wrap it in a bordered div or restyle cells via meta.cellClassName.
  • PageContent, DrawerBody and DialogBody own the gutter. Never add p-24 or any padding around Table.
  • Set widths with size: name 320, email 240, status 140, timestamp 200 (the default minimum is 96px).
  • If columns must keep their size, pass stretch={false}.
  • Two-line cell: add a Text size='xs' color='secondary' line; there is no rowHeight.

Row menu

  • Every contextual row action goes through the master cell: meta: { renderMenuAction } on the first column. Its … shows on row hover, while the menu is open and on the previewed row.
  • Never add a trailing actions column or buttons in cells. There is no actions column type or alwaysShowMenu.
  • Trigger: Button variant='ghost' color='neutral' size='small', Ellipsis icon, aria-label naming the row.
  • Order items: open, edit, reorder, state changes, DropdownMenuSeparator, destructive.
  • Use variant='destructive' and name the entity: "Delete user", not "Delete". Confirm before deleting.
  • Inherited or read-only row: only view and "Open at {scope}".

Data and selection

  • Always pass getRowId={row => row.id}; selection, activeRowId and reordering key on it.
  • For selection, pass rowSelection and onRowSelectionChange; without the handler there are no checkboxes.
  • Sorting: sorting and onSortingChange, plus manualSorting if the server sorts.
  • Bulk actions: Button variant='ghost' color='neutral-alt' in TableActionBar; destructive last with color='destructive'; options go in a DropdownMenu.
  • Custom selection text: TableActionBarSelection (from @wallarm-org/design-system/Table) with BulkBarSummaryCount, BulkBarSummarySelectAll, BulkBarSummaryClear as direct children.
  • Drag to reorder: onRowReorder; pin rows with getRowCanDrag.

Values

  • Status color: Active, Enabled, Connected green; Invited, Pending, Needs attention yellow; Expired, Failed, Error red; Deactivated, Disabled, Draft gray. Badge has no status prop.
  • Never show 0 for missing data; show '—'. FormatDateTime renders — for null itself.
  • Never set meta.align on numbers; they align right on their own. If the first row can be null or '—', set meta: { sortType: 'number' }.
  • Header explanation: meta.description: { type: 'tooltip', content }; type: 'text' keeps it visible.
  • Import OverflowList from @wallarm-org/design-system/OverflowList; pass it a stable items array (row.original.groups). There is no maxItems.
  • Tests: pass data-testid to Table; never select by data-slot.

Examples

The whole table: the cell vocabulary, the row menu in the master cell, sorting and a bulk bar for selected rows.

Adds an ID in Code and an exact time to the Cells vocabulary. Sort by any header; select rows to bring up the bulk bar.

A person with a second line, a status badge, groups as tags, and a number whose header explains it.

Tags collapse into "+N" when the column runs out of room; a user with no groups or no requests shows —.

The row menu: the trigger names the row, and the destructive item comes last and names the entity.

Hover a row: the … appears in the master cell, meta.renderMenuAction on the first column. The trigger names the row and the destructive item comes last.

First load keeps the header and fills the body with placeholder rows.

isLoading draws the skeleton rows, not a Loader; skeletonCount sets how many (12 by default).

Nothing created yet: an empty state under the header.

EmptyState type='collection-empty' inside TableEmptyState. It has no button when the page header already has Create.

States

StateShowExample component
First loadisLoading (12 skeleton rows; skeletonCount), not a LoaderTable
Nothing createdEmptyState type='collection-empty'; no button if PageActions has Create; keep header and toolbarTableEmptyState
No matchestype='collection-empty', "No results found", Button variant='outline' color='neutral' "Reset filters"; not type='no-results'TableEmptyState
Rows selectedThe bar appears on its ownTableActionBar
Row open in a draweractiveRowId={openId}; not a row classNameTable
Switch savingKeep the Switch, Loader in a reserved slot beside itSwitch, Loader
Locked by scopeDisabled control, Lock with a Tooltip naming the scope; never hide the rowTooltip

What your app owns

You ownThe DS owns
columns, order, widthsCell padding, borders, header, hover and selected backgrounds
Status-to-color mapping and labelsBadge dot, size and colors
Row menu items and handlersMenu focus and keyboard
Fetching, filtering, server sorting, paginationClient sorting
Which bulk actions existBar placement, "Select all", "Clear"
Delete confirmationNothing; compose Dialog
Scope markerNothing; compose Badge variant='dotted' with Lock
Metric cell (% over "x of y")Nothing; compose FormatNumber and Text size='xs'
Grouped or orderable tablesgetSubRows, renderGroupRow, onRowReorder