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-header

Usage

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

PropTypeDefaultDescription
titleReactNoderequiredThe page's name, as its h1.
descriptionReactNodeOne line under the title.
crumbs{ label, href? }[]Where the page sits; the last one is the page itself.
actionsReactNodeButtons for the page's main actions.
childrenReactNodeTabs, filters or stats under the title.

View the source on GitHub