From 94af6d7601dd7882fd7e86f40cfe3e54ebafb737 Mon Sep 17 00:00:00 2001 From: Gabriel20xx Date: Mon, 31 Aug 2026 17:17:52 +0200 Subject: [PATCH] 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 --- packages/web-ui/src/lib/components/AppShell.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/web-ui/src/lib/components/AppShell.svelte b/packages/web-ui/src/lib/components/AppShell.svelte index 7abcd0f..08d4888 100644 --- a/packages/web-ui/src/lib/components/AppShell.svelte +++ b/packages/web-ui/src/lib/components/AppShell.svelte @@ -21,6 +21,7 @@ onNavigate, onProfile, onSettings, + pageHeaderActions, showPageHeader = true, showSettings = true, theme = 'dark', @@ -41,6 +42,7 @@ onNavigate?: (item: NavItem) => void; onProfile?: () => void; onSettings?: () => void; + pageHeaderActions?: Snippet; showPageHeader?: boolean; showSettings?: boolean; theme?: 'dark' | 'light' | 'system'; @@ -81,6 +83,7 @@ title={activeNavItem?.label ?? brand} description={activeNavItem?.description ?? `Explore the ${activeNavItem?.label?.toLowerCase() ?? 'application'} section.`} + actions={pageHeaderActions} /> {/if} {@render children?.()}