Skip to main content
  1. Docs
  2. Patterns
  3. 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.

ComponentHere
Page headerThe band: title, count, actions
BreadcrumbWhere the page sits
StatThe key numbers, in summary
TabsThe views, at the header's foot
TableThe records, in a Card
PaginationIn the Card's footer

03 — The code

Its skeleton.

users-page.tsx
<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.
Next — PatternsUser detail