Skip to main content
Version: 1.0.3

SidebarLeft

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.

© 2025 My Application. All rights reserved.

Installation

ignix add component sidebarleftlayout

Usage

import { SideBarLeftLayout } from '@ignix-ui/sidebarleftlayout';

function App() {
return (
<SideBarLeftLayout
variant="default"
mobileBreakpoint="md"
sidebarWidth="default"
sidebarPosition="left"
header={<div>Header Content</div>}
sidebar={<div>Sidebar Content</div>}
footer={<div>Footer Content</div>}
>
<div className="p-6">
<h1>Dashboard</h1>
<p>Main content area.</p>
</div>
</SideBarLeftLayout>
);
}

Props

PropTypeDefaultDescription
headerReact.ReactNode-Content for the header section
sidebarReact.ReactNode-Content for the sidebar section
footerReact.ReactNode-Content for the footer section
childrenReact.ReactNode-Main content area
variant"default" | "dark" | "light" | "glass" | "gradient""default"Visual theme variant
sidebarWidth"default" | "compact" | "wide" | "expanded""default"Predefined width for the sidebar
sidebarPosition"left" | "right""left"Side where the sidebar is rendered
animation"none" | "slide" | "fade" | "scale" | "bounce""slide"Entrance animation style
mobileBreakpoint"sm" | "md" | "lg""md"Screen size to switch to mobile layout
stickyHeaderbooleantrueWhether the header is fixed at the top
stickyFooterbooleanfalseWhether the footer is fixed at the bottom
overlaybooleantrueShow backdrop overlay in mobile mode
enableGesturesbooleantrueEnable swipe gestures for mobile sidebar
sidebarCollapsedWidthnumber80Width of the sidebar when collapsed (px)
headerHeightnumber64Fixed height for the header (px)
footerHeightnumber64Fixed height for the footer (px)
contentPaddingstring"p-4"Padding classes for the main content area
transitionDurationnumber0.3Animation transition time in seconds
sidebarCollapsedbooleanfalseWhether the sidebar starts in collapsed state
onSidebarToggle(isOpen: boolean) => void-Event fired when sidebar opens/closes
zIndexobject{ header: 10, sidebar: 90, footer: 50, overlay: 80 }Z-index configuration for layout layers
classNamestring-Additional CSS classes for the root container