We use cookies to ensure you get the best experience on our website. Read our privacy policy

Skip to main content

Directory

SideBar Component

The SideBar component creates a scrollable vertical panel that’s perfect for navigation menus, filters, or supplementary content. It automatically adjusts to your viewport height and maintains accessibility.

  • Check Circle

    Responsive Design: Automatically adapts to viewport height

  • Check Circle

    Custom Scrolling: Smooth scrollbar for overflow content

  • Check Circle

    Flexible Positioning: Left or right side placement

  • Check Circle

    Sticky Behavior: Maintains position while scrolling

Create a basic sidebar with navigation:

<SideBar side="left">
<nav>
<ul class="space-y-2">
<li>Home</li>
<li>About</li>
<li>Contact</li>
</ul>
</nav>
</SideBar>
SideBar Component Props Extends <div> HTMLElement
Prop Type Default Description
side 'left' | 'right' left Position of the sidebar
wrapperClass string Classes for the inner wrapper
Navigation menus
Documentation sidebars
Filter panels
Table of contents
Settings panels
Related content
Quick links

Limited Time Launch Sale

Build responsive layouts in minutes with our AstroJS starter template. Get the SideBar component and many more UI components ready to use in your next project.

GET 60% OFF!
North Star Themes Logo

Subscribe to our newsletter

Get the latest AstroJS tips and tricks right to your inbox

Email: [email protected]

© 2025 North Star Themes

Web Kit Provided By North Star Themes