Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

PageHeader

Open .md
Live preview

Loading example…

Page header. No required parts: compose an eyebrow / title / lede block in a plain <div> and, when the view has buttons, PageHeaderActions as the second child. Actions wrap under the title when the container is too narrow. back, breadcrumbs, meta and tabs each take a full-width row around the children.

import { PageHeader } from "@jcsoftdev/ui/containers";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/containers/page-header.

<PageHeader>
<>
<div>
<PageHeaderEyebrow>Sábado 11 de octubre</PageHeaderEyebrow>
<PageHeaderTitle>
Agenda de <span className="text-accent-word">hoy</span>
</PageHeaderTitle>
<PageHeaderLede>
12 citas con 3 barberos. Quedan 2 horarios libres por la tarde.
</PageHeaderLede>
</div>
<PageHeaderActions>
<Button variant="secondary">Bloquear horario</Button>
<Button>Nueva cita</Button>
</PageHeaderActions>
</>
</PageHeader>
Prop Type Default Description
breadcrumbs ReactNode Trail shown on its own row above the title, usually a Breadcrumbs.
compact boolean Tighter, centred header with a smaller title and a body-size lede.
back ReactNode Link to the parent screen on its own row above the title: a PageHeaderBack. Shown before breadcrumbs.
meta ReactNode Row under the title block for status chips and short facts. Wraps; never needs a container query.
tabs ReactNode Sub-navigation under the title, full width: a TabsNav (route tabs) or a Tabs list. The strip carries its own bottom divider, so it closes the header.
sticky boolean Keeps the whole header, tabs included, at the top of its scroll container with an opaque page background. The navigation inside stays reachable while the page scrolls.
stickyOffset string | number Distance a sticky header keeps from the top of its scroll container (number = pixels). Default 0.

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/containers/page-header/page-header.tsx