Component docs
Loading
import { PageHeader } from "@pixxl-tools/components";
// In Server Components:
import { PageHeader } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
actions | ReactNode | — | Action slot (buttons or links). |
breadcrumbs | ReactNode | — | — |
description | ReactNode | — | Supporting text. |
headingAs | "h1" | "h2" | "h3" | h1 | Title element: h1 (default) for the page; h2/h3 for a preview inside another page. |
titleReactNode
Title (any content).
actionsReactNode
Action slot (buttons or links).
breadcrumbsReactNode
descriptionReactNode
Supporting text.
headingAsdefault h1"h1" | "h2" | "h3"
Title element: h1 (default) for the page; h2/h3 for a preview inside another page.
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
<PageHeader title="Components" />