Resource list page
Components: Page, PageHeader, PageHeaderGroup, PageTitle, PageDescription, PageActions, PageToolbar, PageContent
+15 more
RemoteShellBreadcrumb, Button, SearchInput, SegmentedTabs, SegmentedTabsList, SegmentedTabsTrigger, NumericBadge, Table, TableEmptyState, EmptyState, EmptyStateIllustration, EmptyStateMessage, EmptyStateTitle, EmptyStateDescription, EmptyStateActions
A resource list page is Page with a header, a filter toolbar and one Table. All parts import from @wallarm-org/design-system.
When to use
Rules
Spacing counts in pixels: px-24 is 24px. See Spacing.
Frame and spacing
- If the page lists rows, use
<Page fullSize fixedHeight>. The body scrolls; header and toolbar stay put. PageHeader,PageToolbarandPageContentown the 24px side gutter. Never wrapPageor them in a padded container, and never addpx-*,py-*orgap-*toPageToolbarorPageContent.- Toolbar to table is 12px, and search to tabs is 12px. Both are automatic; add nothing.
- Put
Tablestraight intoPageContent. It aligns to the gutter. - Never put the search or the status tabs inside
PageHeaderorPageContent. They go inPageToolbar.
Header
- The trail ("Settings › Users") is
RemoteShellBreadcrumb, above the page; see Application layout. Never putBreadcrumbsinPageHeader. - The title repeats the last crumb.
- Give
PageHeaderGroupclassName='flex-1'so a long description never pushes the buttons down. - Write
PageDescriptionas one plain sentence: what the entity is and how it relates to sibling pages. - Show one primary button in
PageActions, labelled "Create" plus the entity: "Create user". - Use
Button size='medium'(32px) inPageActions. The defaultlargeis 36px. - If there is a code-first alternative ("Edit as code"), make it
variant='secondary'in the samePageActions.
Toolbar
- Give
SearchInputclassName='w-[320px]'and a placeholder naming the searched fields: "Search name or email". Keep the default size. SearchInputhas a built-in clear button that callsonChange(''). Never add a separate Clear button.- Use
SegmentedTabswithvalueandonChange(value: string)as the status filter. It has noonValueChange. - Put the count in a
NumericBadgeinside eachSegmentedTabsTrigger, after the label. Recompute counts when data changes. - Never add
SegmentedTabsContentfor a filter. The tabs changedata; the oneTablestays. - If you need filters beyond the one status filter, use
FilterInputor Filtering.
Table
- Pass
getRowIdso selection and row state survive refetches. - Row actions live in the master cell:
meta.renderMenuActionon the first column. Never add a trailing actions column; see Entity table.
What does not exist
There is no breadcrumbs prop or slot on Page or PageHeader, no PageBreadcrumbs, no size prop on PageTitle, no className on SegmentedTabs, and no DRAWER_SIZES or DIALOG_SIZES export.
Examples
The page frame: a fixed-height Page with the table directly in PageContent.
The whole page: title, description and one create action in the header; search and status tabs with counts in the toolbar; a user table with a status badge and a row menu in the master cell. Search and tabs filter the rows.
A header with a title block and one create action.
The title repeats the last crumb of the product's trail; one create action sits on the right.
A toolbar with search and status tabs that carry counts.
Search clears with its built-in button; the tabs filter the one table, with no tab panels.
No results: type='collection-empty' with a button that resets filters.
Search or a tab matched nothing: "No results found" with a "Reset filters" button that clears
both. The header keeps its one create action; the empty state never adds another, and never
uses type='no-results' (that is for cards and menus).
Nothing exists yet: the same type='collection-empty', with no button.
Nothing exists yet: the real header with its create button, the toolbar, and an empty state with no button of its own — one create action per screen.