feat: support pageHeaderActions in AppShell

Wires a pageHeaderActions snippet prop through to PageHeader's actions
slot, so consumers can render content (e.g. stats, buttons) in the
page title container alongside the title/description.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Sonnet 5 committed 2026-08-31 17:17:52 +02:00
1 parent fa69e6ef3c
commit 94af6d7601
1 file changed
+3
@@ -21,6 +21,7 @@
onNavigate, onNavigate,
onProfile, onProfile,
onSettings, onSettings,
pageHeaderActions,
showPageHeader = true, showPageHeader = true,
showSettings = true, showSettings = true,
theme = 'dark', theme = 'dark',
@@ -41,6 +42,7 @@
onNavigate?: (item: NavItem) => void; onNavigate?: (item: NavItem) => void;
onProfile?: () => void; onProfile?: () => void;
onSettings?: () => void; onSettings?: () => void;
pageHeaderActions?: Snippet;
showPageHeader?: boolean; showPageHeader?: boolean;
showSettings?: boolean; showSettings?: boolean;
theme?: 'dark' | 'light' | 'system'; theme?: 'dark' | 'light' | 'system';
@@ -81,6 +83,7 @@
title={activeNavItem?.label ?? brand} title={activeNavItem?.label ?? brand}
description={activeNavItem?.description ?? description={activeNavItem?.description ??
`Explore the ${activeNavItem?.label?.toLowerCase() ?? 'application'} section.`} `Explore the ${activeNavItem?.label?.toLowerCase() ?? 'application'} section.`}
actions={pageHeaderActions}
/> />
{/if} {/if}
{@render children?.()} {@render children?.()}