From fe9b5c36f35be5455b781bbcc55f073605f458a0 Mon Sep 17 00:00:00 2001 From: jzunigax2 <125698953+jzunigax2@users.noreply.github.com> Date: Thu, 7 May 2026 15:46:09 -0600 Subject: [PATCH 1/3] feat(sidenav): add notification slot above storage --- src/components/navigation/sidenav/Sidenav.tsx | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/navigation/sidenav/Sidenav.tsx b/src/components/navigation/sidenav/Sidenav.tsx index 3986f93..cdcc014 100644 --- a/src/components/navigation/sidenav/Sidenav.tsx +++ b/src/components/navigation/sidenav/Sidenav.tsx @@ -39,6 +39,7 @@ export interface SidenavProps { showSubsections?: boolean; isCollapsed?: boolean; storage?: SidenavStorageProps; + notification?: ReactNode; onToggleCollapse?: () => void; } @@ -55,6 +56,7 @@ export interface SidenavProps { * @property {boolean} showSubsections - Determines whether to display the subsections of the sidenav * @property {boolean} isCollapsed - Determines whether the sidenav is collapsed or not * @property {SidenavStorage} storage - The storage information displayed at the bottom of the sidenav + * @property {ReactNode} notification - Optional notification node rendered above the storage section (hidden when collapsed) * @property {() => void} onToggleCollapse - A callback function triggered when the collapse button is clicked */ const Sidenav = ({ @@ -66,6 +68,7 @@ const Sidenav = ({ showSubsections, isCollapsed = false, storage, + notification, onToggleCollapse, }: SidenavProps) => { return ( @@ -94,18 +97,21 @@ const Sidenav = ({ - {storage && ( + {(notification || storage) && (