- Docs
- Patterns
- Dashboard header
Dashboard header
A list page's head: where it sits, its title and count, actions, key numbers and tabs.
- Built from
- 6 componentsPage header, Breadcrumb, Stat
01 — The pattern
The page, live.
02 — Built from
The components, and their jobs here.
| Component | Here |
|---|---|
| Page header | The band: title, count, actions |
| Breadcrumb | Where the page sits |
| Stat | The key numbers, in summary |
| Tabs | The views, at the header's foot |
| Table | The records, in a Card |
| Pagination | In the Card's footer |
03 — The code
Its skeleton.
<Tabs defaultValue="all">
<PageHeader
breadcrumb={<Breadcrumb>…</Breadcrumb>}
title="Users"
count={1284}
description="People who can sign in to Acme Pvt Ltd's applications."
actions={
<>
<Button variant="soft" icon={DownloadIcon}>Export</Button>
<Button icon={PlusIcon}>Invite users</Button>
</>
}
summary={<StatGroup aria-label="Users at a glance">…</StatGroup>}
tabs={<TabsList aria-label="Users">…</TabsList>}
/>
<PageContent>
<Card footer={<Pagination … />}>
<Table label="Users" selectable … />
</Card>
</PageContent>
</Tabs>04 — Rules
What makes it work.
- Four numbers at most, each with a note that says which way.
- One solid action: the primary, last.
- Tabs for views of the same list; the count in the title is the whole list's.