Ask Rift AI
Theme: Smoke
Layout: Contained
Background: Field
Search or ask anythingAsk Rift AI
Theme: Smoke
Layout: Contained
Background: Field
Colour mode: System

Page header

Where you are, what this is, what you can do

Page header puts the breadcrumb, the page’s title and a sentence on what it is for at the top of a page, with the page’s own actions at the end of the title row. When the header is narrow the actions take the row under the text and share it, so a phone gets full-width buttons without a media query.

Default

Projects

Everything your team is working on, with who owns it and when it is due.

Narrow

Members

People with access to this project.

Alternatives

  • Use Section title instead when the heading opens a section within a page rather than the page itself.

Props

Read from the same JSDoc that ships in the package's types. A required prop is marked with an asterisk.

PageHeader props
PropTypeDefaultDescription
title*
ReactNode
The page's title, its heading. Note: this shadows the native `title` tooltip attribute, which PageHeader does not expose.
description
ReactNode
A sentence under the title on what the page is for or what it holds.
breadcrumb
BreadcrumbItem[]
The trail above the title, from the top of the app to this page; the last item is this page and takes no `href`.
actions
ReactNode
The page's own actions at the end of the title row: one primary Button, a secondary or two. On a narrow page they take the row under the text.
headingLevel
1 | 2
1
The heading's place in the outline. The page's title is its `h1`; a header inside a tab or a pane can be an `h2`.
linkComponent
LinkComponent
The component the breadcrumb's links render with, such as Next.js's `Link`, so they navigate through the app's router; a plain `<a>` when unset. This component can render on the server, so it never reads a LinkProvider: pass the prop even under one.
className
string
''
Additional CSS classes

Keys

Its breadcrumb links and the actions passed in are native links and buttons, reached with Tab. Those keys belong to the platform, so no test of this library presses them.

tsx
// From the npm package
import { PageHeader } from 'rift-ds/components/PageHeader/PageHeader';

// Or as source you own, via the shadcn CLI
npx shadcn@latest add https://rift-ds.com/r/page-header.json

1.3 kB gzipped, with everything it imports. Peer dependencies are not counted.

For agents: the props, their allowed values and defaults, and the tested keys, as markdown or as a JSON schema.