Skip to content

Page Header

The top of a project, record or agent run page: breadcrumbs, title and status, owner and members, progress, tabs and actions. Actions fold into a menu as space runs out, and the header condenses into a sticky bar as you scroll.

On this page

Examples

Container

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

breadcrumbs
{ label, href? }[]
A trail; the last one gets aria-current="page". Below ~560px of container the root crumb hides behind “…”.
icon
ReactNode
A small tile beside the title (and in the compact bar): the project's icon. Decorative.
title / titleText
ReactNode / string
The page title (h1). titleText names it when title isn't plain text.
status
{ label, tone?, dot? }
A pill Badge next to the title, also shown in the compact bar.
description
ReactNode
One or two lines under the title.
owner / members / membersMax
{ label, src?, icon? } / …[] / number
Default - / - / 4
Meta row: the owner with a tiny avatar, members as an AvatarGroup with +N.
due
Date | string | number
Target date, e.g. “Sep 30”.
meta
{ id, label?, icon?, content }[]
Any other meta items.
progress
{ value | segments, total, unit?, label?, text? }
“31 of 40 issues · 78%” with a thin Progress bar. Give `segments` ({ value, tone?, label? }[]) instead of `value` for a bar in parts: the line reads “62% 24 of 39 issues” for the first part, and each part has a tooltip. `text` replaces the line above the bar.
spend
boolean
Defaulttrue
Variant "run": show the run's spend in the meta row. Turn it off when the page shows spend elsewhere, such as a budget card.
tabs / tab / defaultTab / onTabChange
{ value, label, count?, icon?, disabled?, href? }[] / string / string / (v) => void
Defaultfirst tab
Tabs under the header, the first label flush with the title (counts as badges; they scroll sideways when narrow). Put <TabsContent> panels in children. Give every tab an `href` for route tabs: they become links (Ctrl or Cmd click opens a new tab) in a nav landmark, and `tab` is the current route.
primaryAction
PageHeaderAction
The main button. Below ~460px it shows only its icon (the label becomes aria-label and a tooltip).
actions
PageHeaderAction[]
Secondary buttons. When the row runs out of room they move into the overflow menu, last first.
moreActions
PageHeaderAction[]
Always in the overflow menu (“More actions”).
PageHeaderAction
{ id, label, icon?, onSelect?, danger?, disabled? }
Return a string from onSelect (e.g. “Following”) and it is announced in a polite status region.
condense / scrollContainer
boolean / RefObject<HTMLElement>
Defaulttrue / window
After ~16px of scroll the header folds into a sticky bar (title, status, primary) above the tabs. Reduced motion: a plain fade.
children
ReactNode
The page under the header. The header sticks while it scrolls.
variant / run
"default" | "run" / AgentRun
Default"default"
run: status (Running / Needs you / Failed / Done), Spend, the agents with model logos, and Pause / Resume / Stop / Share from onPause, onResume, onStop, onShare and paused. Explicit props win.

When to use

When to use

  • The top of a project, record or run page: breadcrumbs, title and status, meta, progress, tabs and actions.
  • Long pages where the header should condense into a sticky bar as the user scrolls.

When not to use

  • The site-wide navigation bar: this is a per-page header.
  • Just a trail of links: use Breadcrumb.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Page Header to my app and wire it to my own data.
  • I need the top of a project, record or run page: breadcrumbs, title and status, meta, progress, tabs and actions. Set that up with the Knowns UI Page Header.
  • Which Page Header props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "page-header" }) and search_docs({ query: "page header" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Page Header, or found something off? We read every message.