Skip to content
THE COMPONENT LIBRARY
Skip to content

Component reference

PageHeader

A page introduction with context and actions.

Preview

Live preview

Changes apply to this preview only.

Getting started

Install Pimolu UI

Add the design tokens, the web styles bundle and the React package to a new project. The same tokens power the native renderer.

pnpm · npm · yarnReact 18 and 19

Width adapts to the available space

More examples

Different configurations and compositions using the real Pimolu API. Each preview runs independently and follows the site appearance.

Documentation header

Breadcrumbs use the shared Breadcrumbs primitives; the last entry is the current page and carries aria-current. Actions wrap under the title on narrow screens.

Open preview

Centered marketing header

align="center" centers the content, the breadcrumbs and the actions; it suits a landing page better than a reference page.

Open preview

Compact introduction

Eyebrow, title and description are enough for a guide or a changelog page; every optional slot can be omitted.

Open preview

Usage

Keep one main page title and use description/actions to clarify the current task.

API reference

Generated from the public TypeScript declarations. Native HTML attributes are inherited where the component extends them; this reference includes Pimolu props and selected common native attributes.

PimoluPageHeaderBreadcrumb

Type source
PimoluPageHeaderBreadcrumb public API
NameTypeDefaultDescription
labelRequiredReactNode—Visible label of the crumb.
hrefstring | undefined—Destination of the crumb. The last crumb always represents the current page and is rendered as text with aria-current="page".
labelRequired

ReactNode

No default extracted.

Visible label of the crumb.

href

string | undefined

No default extracted.

Destination of the crumb. The last crumb always represents the current page and is rendered as text with aria-current="page".

PimoluPageHeaderProps

Type source
PimoluPageHeaderProps public API
NameTypeDefaultDescription
titleRequiredReactNode—The page title. Rendered as h1 by default.
titleAsPimoluPageHeaderTitleElement | undefined"h1"Heading level used for the title. Defaults to "h1".
descriptionReactNode—Lead paragraph displayed under the title.
eyebrowReactNode—Small label above the title, for a section or a category.
actionsReactNode—Buttons or links aligned with the title block.
breadcrumbsPimoluPageHeaderBreadcrumbs—Breadcrumb trail. Pass a list of crumbs to render the shared Breadcrumbs primitives, or a ready-made node. In list mode the last entry is the current page.
metaReactNode—Secondary information under the description, such as a date or tags.
alignPimoluPageHeaderAlign | undefined"start"Horizontal alignment of the block. Defaults to "start".
classNamestring | undefined—Public Pimolu prop; see the source declaration for details.
onChangeChangeEventHandler<HTMLElement, Element> | undefined—Standard React/HTML attribute.
defaultValuestring | number | readonly string[] | undefined—Standard React/HTML attribute.
styleCSSProperties | undefined—Standard React/HTML attribute.
aria-labelstring | undefined—Defines a string value that labels the current element.
childrenReactNode—Standard React/HTML attribute.
onClickMouseEventHandler<HTMLElement> | undefined—Standard React/HTML attribute.
titleRequired

ReactNode

No default extracted.

The page title. Rendered as h1 by default.

titleAs

PimoluPageHeaderTitleElement | undefined

Default: "h1"

Heading level used for the title. Defaults to "h1".

description

ReactNode

No default extracted.

Lead paragraph displayed under the title.

eyebrow

ReactNode

No default extracted.

Small label above the title, for a section or a category.

actions

ReactNode

No default extracted.

Buttons or links aligned with the title block.

breadcrumbs

PimoluPageHeaderBreadcrumbs

No default extracted.

Breadcrumb trail. Pass a list of crumbs to render the shared Breadcrumbs primitives, or a ready-made node. In list mode the last entry is the current page.

meta

ReactNode

No default extracted.

Secondary information under the description, such as a date or tags.

align

PimoluPageHeaderAlign | undefined

Default: "start"

Horizontal alignment of the block. Defaults to "start".

className

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

onChange

ChangeEventHandler<HTMLElement, Element> | undefined

No default extracted.

Standard React/HTML attribute.

defaultValue

string | number | readonly string[] | undefined

No default extracted.

Standard React/HTML attribute.

style

CSSProperties | undefined

No default extracted.

Standard React/HTML attribute.

aria-label

string | undefined

No default extracted.

Defines a string value that labels the current element.

children

ReactNode

No default extracted.

Standard React/HTML attribute.

onClick

MouseEventHandler<HTMLElement> | undefined

No default extracted.

Standard React/HTML attribute.

Accessibility

  • Preserve heading hierarchy and ensure breadcrumb/action labels remain understandable on mobile.
Read the accessibility guide →