Provides a unified admin page header component with optional back button, title, subtitle, and action slots.
Replaces the 7+ different header patterns previously used across admin templates, providing a consistent inline flex layout with responsive behavior.
Summary
Functions
Renders an admin page header with title, subtitle, and optional actions.
Functions
Renders an admin page header with title, subtitle, and optional actions.
For simple headers, use title and subtitle attributes. For complex headers
with rich content (badges, metadata), use inner_block to provide custom title
markup that replaces the default title/subtitle rendering.
Attributes
title- Page title as a string attributesubtitle- Page subtitle as a string attributeback- Deprecated, no-op. Retained so existing callers compile; the back arrow no longer renders. Remove from call sites at your convenience.back_click- Deprecated, no-op. Same rationale asback.
Slots
:inner_block- Custom title/subtitle markup (overridestitle/subtitleattrs):actions- Action buttons rendered on the right side
Examples
<%!-- Basic --%>
<.admin_page_header title="User Management" />
<%!-- With subtitle --%>
<.admin_page_header title="Settings" subtitle="Configure system" />
<%!-- With actions --%>
<.admin_page_header title="Posts">
<:actions>
<button class="btn btn-primary btn-sm">New Post</button>
</:actions>
</.admin_page_header>
<%!-- Rich title content --%>
<.admin_page_header>
<h1 class="text-xl sm:text-2xl lg:text-3xl font-bold text-base-content">Invoice #123</h1>
<p class="text-sm text-base-content/60 mt-0.5">Created 2 days ago</p>
</.admin_page_header>Attributes
back(:string) - Defaults tonil.back_click(:string) - Defaults tonil.title(:string) - Defaults tonil.subtitle(:string) - Defaults tonil.
Slots
inner_blockactions