Page Header
Presentational page header: an eyebrow, a title at the heading level you choose, a description, an actions slot that wraps below the title on narrow screens, a breadcrumb slot and a tabs slot.
Example
Deployments
Every deploy of the last 30 days, newest first.
page-header-demo.tsxCopy code
Installation
Copy code
Brings alongscroll-area
Usage
ImportCopy code
API reference
PageHeader
| Prop | Type | Default |
|---|---|---|
titlerequired | ReactNode | – |
eyebrowA short kicker above the title, like the section or object type. | ReactNode | – |
headingLevel | PageHeadingLevel | 1 |
description | ReactNode | – |
actions | ReactNode | – |
breadcrumb | ReactNode | – |
tabsA slot under the title row for a TabsList. Wrap the page in Tabs so the list and its panels share one root. | ReactNode | – |
titleId | string | – |
Also takes <div> attributes except title.
Other exports
type PageHeaderPropstype PageHeadingLevelAccessibility
- The title is an h1 by default (headingLevel changes it) with an id for aria-labelledby.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.