v0.0.2
Demos (demo panel, opens in a new tab)

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

Basic usage: view
BLADE

title sets the page's h1 heading and description the text below it.

blade
<zb:page-header title="Orders" description="Shipping status of the 148 orders from the Kadıköy warehouse." />
PropValues
titlePage title
descriptionDescription below the title

Actions

Actions: view
BLADE

Buttons in the actions slot sit to the right of the title.

blade
<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>
PropValues
actionsSlot; right of the title

Additional content

Additional content: view
BLADE

The default slot puts tabs or filter buttons below the description.

blade
<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>
PropValues
default slotBelow the description (tabs, filters)

Props

The values the component takes. What are props and slots?

PropTypeDefaultDescription
title— — Required; the page title (h1)
description—nullDescription below the title
breadcrumbs—[]zb:breadcrumb items; if empty, no breadcrumb is rendered
home-route—dashboardRoute name for the home icon; if it is not defined, the site root
home-url—nullDirect 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

Events, hooks and details
  • title is required and is rendered as h1, 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-route or home-url changes where the icon leads; if the route is not defined, it leads to the site root.
Zubazar UI · ZubazarDesigned for people.