Page Header
Website launch
Hide a part to see the spacing adapt. On narrow screens, actions move below the title.
Hide a part to see the spacing adapt. On narrow screens, actions move below the title.
A page's heading block with optional breadcrumbs, description, tags, actions and tabs. Data and actions belong to the host app. Optional slots reserve no empty space.
A Markdown brief for Claude, Cursor or v0: install, setup, props and a complete example.
For the top of a page: its title, where it sits, what it is about and its main actions.
Renders the page’s heading. Breadcrumbs and tabs inside keep their own navigation semantics.
import { PageHeader } from '@idyeah/diya'Stable since 1.0.0
titleRequiredReactNodeThe page heading; it also names the section for assistive technology.
actionsReactNodeSlot beside the heading for page-level buttons.
breadcrumbsReactNodeSlot above the heading, usually a Breadcrumbs element.
descriptionReactNodeSupporting text under the heading.
headingLevel1 | 2 | 3 | 4 | 5 | 6Heading element level, h1 to h6; defaults to 2. Use 1 for the page's only top heading.
Default 2
navigationReactNodeSlot along the bottom edge, usually Tabs for sub-pages.
surfacebooleanDraws the header on its own panel; defaults to true. Pass false to set it straight on the page, as an app screen's title.
Default true
tagsReactNodeSlot under the description for Tag or Badge elements.
Also takes every native <section> attribute, such as id, aria-* or data-*.