The top of a dashboard page: breadcrumbs, title, description and actions on the right.
import { PageHeader, Breadcrumbs, BreadcrumbItem } from "kivu-ui"On this page
import { PageHeader, Breadcrumbs, BreadcrumbItem } from "kivu-ui";Members, billing and integrations for Brand refresh.
import { BreadcrumbItem, Breadcrumbs, Button, PageHeader } from "kivu-ui";
export default function Demo() {
return (
<PageHeader
className="w-full"
breadcrumbs={
<Breadcrumbs>
<BreadcrumbItem href="#usage">Projects</BreadcrumbItem>
<BreadcrumbItem href="#usage">Brand refresh</BreadcrumbItem>
<BreadcrumbItem current>Settings</BreadcrumbItem>
</Breadcrumbs>
}
title="Project settings"
description="Members, billing and integrations for Brand refresh."
actions={
<>
<Button variant="outline">Cancel</Button>
<Button>Save changes</Button>
</>
}
/>
);
}Extends <div> attributes.
| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | - | Required. The page title. |
description | ReactNode | - | Text under the title. |
breadcrumbs | ReactNode | - | Usually <Breadcrumbs>, shown above the title. |
actions | ReactNode | - | Buttons on the right; they wrap below on small screens. |
as | "h1" | "h2" | "h3" | "h1" | Heading level. |
Extends <a> attributes.
| Prop | Type | Default | Description |
|---|---|---|---|
current | boolean | false | The current page: plain text with aria-current. |
asChild | boolean | false | Render the single child (e.g. a router Link) with this link's styles and behaviour. |
Every component also accepts className and forwards its ref. Root CSS class: .kivu-page-header