Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationSidebar

Sidebar

A versatile sidebar component with collapsible navigation, mobile overlay, and flexible layout system for modern web applications.

Install Dependencies

npx
quickcode-ui add Sidebar

Examples

Default Sidebar

Dashboard

Welcome

Fixed sidebar on desktop, mobile overlay on smaller screens.

Collapsible Sidebar

Library

Collapsible Sidebar

Click chevron to toggle width. Mobile uses custom overlay.

Props

PropTypeDefaultDescription
childrenReact.ReactNodeThe sidebar layout content
defaultCollapsedbooleanfalseInitial collapsed state of the sidebar
classNamestringAdditional CSS classes for the root container

Sidebar.Root

PropTypeDefaultDescription
childrenReact.ReactNodeThe sidebar content
classNamestringAdditional CSS classes for the sidebar

Sidebar.Header

PropTypeDefaultDescription
childrenReact.ReactNodeHeader content that stays at the top
classNamestringAdditional CSS classes for the header

Sidebar.Content

PropTypeDefaultDescription
childrenReact.ReactNodeScrollable main content area
classNamestringAdditional CSS classes for the content

Sidebar.Group

PropTypeDefaultDescription
childrenReact.ReactNodeGrouped navigation items
classNamestringAdditional CSS classes for the group

Sidebar.Footer

PropTypeDefaultDescription
childrenReact.ReactNodeFooter content that stays at the bottom
classNamestringAdditional CSS classes for the footer

Sidebar.Main

PropTypeDefaultDescription
childrenReact.ReactNodeMain content area next to the sidebar
classNamestringAdditional CSS classes for the main content

Sidebar.Mobile

PropTypeDefaultDescription
childrenReact.ReactNodeMobile sidebar content (custom overlay)
Last updated on