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:
1 parent
fa69e6ef3c
commit
94af6d7601
1 file changed
+3
@@ -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?.()}
|
||||
|
||||
Reference in new issue
Block a user