Provides a unified user dashboard header component with title, subtitle, and action slots.
Use this component in custom user dashboard pages for consistent page-level headers with titles and action buttons.
Examples
<%!-- Basic --%>
<.user_dashboard_header title="My Profile" />
<%!-- With subtitle --%>
<.user_dashboard_header title="Security" subtitle="Manage your account security" />
<%!-- With actions --%>
<.user_dashboard_header title="My Posts">
<:actions>
<.pk_link_button navigate={~p"/dashboard/posts/new"} variant="primary">
New Post
</.pk_link_button>
</:actions>
</.user_dashboard_header>
<%!-- Rich title content --%>
<.user_dashboard_header>
<h1 class="text-xl sm:text-2xl lg:text-3xl font-bold text-base-content">Order #123</h1>
<p class="text-sm text-base-content/60 mt-0.5">Placed 2 days ago</p>
</.user_dashboard_header>Attributes
title- Page title as a string attributesubtitle- Page subtitle as a string attribute
Slots
:inner_block- Custom title/subtitle markup (overridestitle/subtitleattrs):actions- Action buttons rendered on the right side