Skip to content
GitHub (opens in a new tab)

PageHeader

Top-of-page title with optional Breadcrumb trail, subtitle, actions, page Tabs, a profile Avatar and a decorative cover.

stableOrganismcontracts/pageheader.json

Preview

PageHeader

Page title block. Optional Breadcrumb trail above. Actions take kit Buttons or other controls, such as a search Input; one primary at most. Not a Breadcrumb cousin.

Master

Title, subtitle, a Breadcrumb trail and two actions, one of them primary. Title stays required.

Aurora

Campaign settings and collaborators.

Usage

Compose Breadcrumb for the path; keep one primary action. PageHeader is the title block. Path-only still belongs on Breadcrumb alone.

Do's

  • Product page title with optional Breadcrumb trail and actions
  • Placing primary/secondary Buttons aligned to the page title
  • Page title with a search Input and one primary Button on the right
  • Profile or company page title with an Avatar beside it, optionally under a cover image

Don'ts

<PageHeader
  title="Aurora"
  subtitle="Campaign settings and collaborators."
  breadcrumbs={[{ label: "Home", href: "#" }, { label: "Projects", href: "#" }, { label: "Aurora" }]}
  actions={
    <>
      <Button appearance="outline" mode="neutral">Edit</Button>
      <Button>Save</Button>
    </>
  }
/>

When to use

  • Product page title with optional Breadcrumb trail and actions
  • Placing primary/secondary Buttons aligned to the page title
  • Page title with a search Input and one primary Button on the right
  • Profile or company page title with an Avatar beside it, optionally under a cover image

When not to use

  • In-card titles — use Section
  • Sidebar — use SideNav (product) or DocsNav (docs/catalog)
  • Product top chrome with logo and search — use AppHeader
  • Modal titles — use ModalCard
  • Path-only without a page title — use Breadcrumb

What an agent reads

import { PageHeader } from "agentic-ds-kit";
must
  • Page title is h1
  • Composed Breadcrumb keeps nav aria-label=Breadcrumb
  • Actions remain keyboard accessible
  • The narrow back step is a nav named Breadcrumb with a link that names the parent page
  • The ⋯ menu trigger is named More actions
  • The cover is decorative: its wrapper is aria-hidden and an img in it uses alt=""
  • An Avatar whose name repeats the title is aria-hidden; otherwise it keeps its accessible name
  • Cover and Avatar are not focusable, so focus order stays trail, actions, more actions, tabs
defaults
  • breadcrumbSeparator chevron
stops if
  • Do not invent local PageHeader
  • Do not invent BreadcrumbItem or BreadcrumbLink cousins — compose kit Breadcrumb
  • Do not restyle Breadcrumb internals from PageHeader
  • Do not use raw hex
  • Do not put more than one primary Button in actions (an Input or other controls beside it are fine)
  • Do not put page Tabs under PageHeader by hand — pass them to tabs
  • Do not uppercase the eyebrow
  • Do not put blocks, lists or buttons in subtitle — it is one line of inline content
  • Do not put a local avatar or image beside the title — pass avatar
  • Do not pick another Avatar size for the page title; PageHeader always uses xl
  • Do not put text, links or controls in cover — it is aria-hidden decoration
  • Do not use a cover on work pages (lists, settings, dashboards); it is for profile and company pages

From contracts/pageheader.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
titlestringYes—24/32 at heading weight: the largest of three title sizes (page 24, section 18, card 14).
subtitlestring | nodeNo—One line under the title, 14/20 secondary. Text, or inline nodes such as a lucide icon before a short scope line ("Applies to everyone in Northwind"): a leading svg is muted, 16px and centred on the text. Renders in a p, so no blocks, lists or buttons.
eyebrowstringNo—Kept for existing call sites. Sentence case, 12/16 at weight 500, never uppercase. Breadcrumbs replace eyebrow as the default where-am-I.
actionsslotNo—Any node, laid out in a wrapping row, vertically centered on the title line (a subtitle doesn't push them down): kit Buttons, a ButtonGroup, a search Input, a Select. At most one primary Button; it stays in view on narrow screens. A kit Input here sizes to its field (not full width), so it sits beside the Buttons; set a width with its className if you want one. Below 40rem the actions move under the title, except a single button (one Button or IconButton), which stays beside it.
overflowActionsarrayNo—Secondary actions. When the header is wider than 40rem they render as outline neutral Buttons before actions; narrower, they fold into one ⋯ kit DropdownMenu (KitLabels moreActions) after actions, so the labelled primary stays.
tabsslotNo—Kit Tabs, size md, line variant, for the page's views. Rendered under the title row inside the header, so a sticky header keeps them in view.
avatarobjectNo—The person or organisation a profile or company page is about, rendered as kit Avatar size xl (48) beside the title and centred on the title block. circle for people, square for organisations. When name matches the title (trimmed, ignoring case) the Avatar is aria-hidden, since the h1 already names the page; otherwise its name is announced. Below 40rem it stays beside the title; under a cover it keeps its line on the cover edge and the title goes under it.
coverslotNo—Decorative image above the title row: an img (alt=""), a picture, or a kit backdrop. PageHeader wraps it in an aria-hidden box three --space-16 tall (two below 40rem) with --radius-media-lg corners and fills it with object-fit cover. With an avatar, the Avatar overlaps the cover's bottom edge by half its height (--space-6) with a --border-width-medium ring in --surface-page. A header inside a Card shows that page-coloured ring against the card.
breadcrumbsarrayNo—Same shape as Breadcrumb items. Rendered only when length >= 2. Passed through to kit Breadcrumb. When the header is narrower than 40rem, the trail shrinks to one back step to the crumb before the current page (if it has href or onClick).
breadcrumbSeparatorchevron | slashNochevronPassed through to kit Breadcrumb separator.
breadcrumbMaxItemsnumberNo—Passed through to kit Breadcrumb maxItems.
  • Component
    →

    Section

    Grouped page block with optional heading, description, and actions.

  • Component
    →

    SideNav

    Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).

  • Component
    →

    DocsNav

    Docs and catalog sidebar only: title, grouped text-only links, optional decorative icons and muted counts on group and subgroup headers only, an active page pill and optional footer links.

  • Component
    →

    AppHeader

    Product top chrome: brand mark on the start, centered kit Input search, trailing actions.