Skip to content
Thrum

Page header

The block at the top of a page: a breadcrumb, the title, a description, a row of small facts, the page's actions and a tab list. It is layout only, and every part is optional. For the bar across the whole application use the navbar; for a framed block inside a page use the card.

Install

npx shadcn@latest add @thrum-pro/page-header

This is a Pro component. The command works once your project has a licence key: set up Pro or see pricing.

Props

PropTypeDefaultDescription
PageHeader: separatorbooleanDefault falseDraw a line under the header, 16 pixels below its last part. A PageHeaderTabs row sits on the line instead.
PageHeader: classNamestring–Extra classes for the header element, merged last.
PageHeader: ...propsComponentProps<"header">–Every other attribute of the header element.
PageHeaderBreadcrumbComponentProps<"div">–The slot above the title, for a breadcrumb or a back link.
PageHeaderTitle: level1 | 2 | 3 | 4 | 5 | 6Default 1The heading level to render. 1 for the title of the page, lower for a section inside one. The look stays the same.
PageHeaderTitle: ...propsheading props–Every other heading attribute. The title is 20 pixels in a narrow header and 24 in a wide one, and wraps.
PageHeaderDescriptionComponentProps<"p">–One or two sentences under the title, in the muted text colour.
PageHeaderMetaComponentProps<"div">–A wrapping row of small facts: a status, an owner, a date.
PageHeaderActionsComponentProps<"div">–The page's buttons. Beside the title, right-aligned, when the header is at least 512 pixels wide; under the text, left-aligned and wrapping, when it is narrower.
PageHeaderTabsComponentProps<"div">–The slot along the bottom edge for a tab list.
classNamestring–On every part: extra classes, merged last.

Motion and sound

Motion

  • The header does not move. Its layout follows its own width, not the screen's, and changes at once.

Sound

Silent. This component makes no sound.

Accessibility

  • The root is a header element and the title is a real heading of the level you pass, so the page outline stays correct. Use level 1 once per page.
  • It adds no other role and takes no keyboard input. The parts you put in it keep their own.
  • The order in the markup is the reading order: breadcrumb, title, description, meta, actions, tabs. The wide layout only moves the actions visually, to the right of the title.
  • A long title wraps instead of being cut, and nothing overflows at 160 pixels wide.
  • Text uses the foreground and muted colours, which keep 4.5 to 1 against the page in both themes.

Source

SourcePro

The source comes with Pro

TypeScript source · Copy-paste ready · MIT-compatible for client projects · Includes all dependencies

Files and dependencies

Adds
components/ui/page-header.tsx
Packages
None
Brings along
Nothing

Changelog

  1. 1.0.0 · 2026-12-03First release.

Loading index…

Keyboard shortcuts

/Ctrl KSearch components, docs and actions
?Show this list
AAppearance studio
SSound on or off
MFull or reduced motion
TTheme: auto, light, dark
GSurface: solid or frosted
BBackdrop photograph (under glass)
CCorner radius: square to round
RReplay the demo, on a component page
DDraw new data, on a component page
←→HomeEndMove the cursor in a focused chart
EscClose a dialog, or leave a chart cursor