diff --git a/packages/kumo-docs-astro/src/components/demos/SidebarDemo.tsx b/packages/kumo-docs-astro/src/components/demos/SidebarDemo.tsx index 2e8f4cdd6..4ceea3f59 100644 --- a/packages/kumo-docs-astro/src/components/demos/SidebarDemo.tsx +++ b/packages/kumo-docs-astro/src/components/demos/SidebarDemo.tsx @@ -50,6 +50,17 @@ function DemoMain({ children }: { children?: React.ReactNode }) { ); } +/** + * Keeps the footer action aligned with the collapsed rail. The library footer + * deliberately gains breathing room in its expanded state; these demos use a + * single bottom-left action, so retaining its x-position makes the transition + * easier to follow. + */ +function DemoSidebarFooter({ children }: { children: React.ReactNode }) { + return {children}; +} +DemoSidebarFooter.displayName = "Sidebar.Footer"; + function BrandLogo() { return (
@@ -311,9 +322,9 @@ export function SidebarToggleDemo() { - + - + @@ -360,9 +371,9 @@ export function SidebarLoadingDemo() { )} - + - +