Page header
Puts the breadcrumb, the title, a short description and the action buttons at the top of the page.
zb:page-header zubazar/ui · free (MIT)
Basic usage
BLADE
title sets the page's h1 heading and description the text below it.
<zb:page-header title="Orders" description="Shipping status of the 148 orders from the Kadıköy warehouse." />
| Prop | Values |
|---|---|
title | Page title |
description | Description below the title |
Actions
BLADE
Buttons in the actions slot sit to the right of the title.
<zb:page-header title="Orders" description="Shipping status of the 148 orders from the Kadıköy warehouse.">
<zb:slot:actions>
<zb:button variant="white">Export to Excel</zb:button>
<zb:button>New order</zb:button>
</zb:slot:actions>
</zb:page-header>
| Prop | Values |
|---|---|
actions | Slot; right of the title |
Breadcrumbs
BLADE
Add a breadcrumb above the title with breadcrumbs; items take a label and a url or route.
<zb:page-header
title="Ayşe Yılmaz"
description="CUS-10482 · Business customer"
home-url="#"
:breadcrumbs="[
['label' => 'Customers', 'url' => '#musteriler'],
['label' => 'Business', 'url' => '#kurumsal'],
['label' => 'Ayşe Yılmaz'],
]"
/>
| Prop | Values |
|---|---|
breadcrumbs | [['label' => …, 'url' | 'route' => …], …] |
home-route | Route name |
home-url | URL |
Additional content
BLADE
The default slot puts tabs or filter buttons below the description.
<zb:page-header
title="Shipments"
description="September 2026 shipments"
home-url="#"
:breadcrumbs="[['label' => 'Reports', 'url' => '#raporlar'], ['label' => 'Shipments']]"
>
<zb:slot:actions>
<zb:button>Create report</zb:button>
</zb:slot:actions>
<div class="flex flex-wrap gap-2">
<zb:button size="sm" variant="soft">All · 3,320</zb:button>
<zb:button size="sm" variant="ghost">Delivered · 3,106</zb:button>
<zb:button size="sm" variant="ghost">Not delivered · 214</zb:button>
</div>
</zb:page-header>
| Prop | Values |
|---|---|
default slot | Below the description (tabs, filters) |
Props
The values the component takes. What are props and slots?
| Prop | Type | Default | Description |
|---|---|---|---|
title | — | — | Required; the page title (h1) |
description | — | null | Description below the title |
breadcrumbs | — | [] | zb:breadcrumb items; if empty, no breadcrumb is rendered |
home-route | — | dashboard | Route name for the home icon; if it is not defined, the site root |
home-url | — | null | Direct URL for the home icon; when given, home-route is not used |
Slots: actions (right of the title), default content (below the description)
Developer notes
titleis required and is rendered ash1, so use the component once per page.- Put the main action last; when there is not enough room, the actions move below the title.
- The breadcrumb is an
zb:breadcrumb: a home icon is added at the start automatically, and the last item has no link.home-routeorhome-urlchanges where the icon leads; if the route is not defined, it leads to the site root.