Skip to main content
Version: 1.0.3

SidebarLeft

Overview​

The Sidebar-Left component provides a complete layout solution with a header, sidebar, scrollable main content and footer. It's designed to be highly configurable with support for responsive design, animations, and various layout variants. This component is perfect for building dashboards, and complex web applications.

Preview​

ÂĐ 2025 My Application. All rights reserved.

Installation​

ignix add template sidebarleftlayout

Usage​

  import { SideBarLeftLayout } from "./templates/layouts/sidebar-left-layout";

function TemplateSideBarLayoutDemo() {
return (
<SideBarLeftLayout
variant="default"
mobileBreakpoint="md"
sidebarWidth="default"
sidebarPosition="left"
stickyHeader={true}
stickyFooter={false}
overlay={true}
enableGestures={true}
header={<div>Header Content</div>}
sidebar={<div>Sidebar Content</div>}
footer={<div>Footer Content</div>}
children={<div>Main Content</div>}
>
</SidebarLeftLayout>
);
}

Props​

PropTypeDefaultDescription
headerReact.ReactNodeundefinedContent for the header section
sidebarReact.ReactNodeundefinedContent for the sidebar section
footerReact.ReactNodeundefinedContent for the footer section
childrenReact.ReactNodeundefinedMain content area
variant"default" | "dark" | "light" | "glass" | "gradient""default"Visual theme variant
sidebarWidth"default" | "custom""wide""expanded"
sidebarPosition"left" |Position of the sidebar
animation"none" | "slide" | "fade" | "scale" | "bounce""slide"Animation type for transitions
mobileBreakpoint"sm" | "md" | "lg""md"Breakpoint for mobile behavior
stickyHeaderbooleantrueWhether header should be sticky
stickyFooterbooleanfalseWhether footer should be sticky
overlaybooleantrueWhether to show overlay on mobile
enableGesturesbooleantrueWhether to enable touch gestures
sidebarCollapsedWidthnumber80Collapsed width in pixels
headerHeightnumber64Header height in pixels
footerHeightnumber64Footer height in pixels
contentPaddingstring"p-4 lg:p-6"Padding for content area
transitionDurationnumber0.3Animation duration in seconds
sidebarCollapsedbooleanfalseWhether sidebar is initially collapsed
onSidebarToggle(isOpen: boolean) => voidundefinedCallback for sidebar toggle
zIndexobject{ header: 10, sidebar: 90, footer: 50, overlay: 80 }Z-index values for each layer
classNamestringundefinedAdditional CSS classes