Components › Blocks
Page header
The top of an app page: breadcrumb, title, a line of description and the page's actions.
Installation
npx plankui@latest add page-headerUsage
import { PageHeader } from "@/components/ui/page-header";
<PageHeader crumbs={[{ label: "Projects", href: "/projects" }, { label: "Website" }]} title="Website" description="Shipping in January." actions={<Button>New task</Button>} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| title | ReactNode | required | The page's name, as its h1. |
| description | ReactNode | One line under the title. | |
| crumbs | { label, href? }[] | Where the page sits; the last one is the page itself. | |
| actions | ReactNode | Buttons for the page's main actions. | |
| children | ReactNode | Tabs, filters or stats under the title. |