···11+---
22+title: Sidebar
33+description: A sidebar navigation component with support for sections, groups, and collapsible sections.
44+---
55+66+import { PropDocs } from '../../lib/PropDocs'
77+import { Example } from '../../lib/Example'
88+import { Basic } from '../../examples/sidebar/basic'
99+import { WithSections } from '../../examples/sidebar/with-sections'
1010+import { WithGroups } from '../../examples/sidebar/with-groups'
1111+1212+<Example src={Basic} />
1313+1414+## Installation
1515+1616+Run the following command to add the sidebar component to your project.
1717+1818+```bash
1919+pnpm hip install sidebar
2020+```
2121+2222+## Props
2323+2424+<PropDocs components={["Sidebar", "SidebarHeader", "SidebarGroup", "SidebarSection", "SidebarItem"]} />
2525+2626+## Features
2727+2828+### With Sections
2929+3030+Organize sidebar items into sections with titles.
3131+3232+<Example src={WithSections} />
3333+3434+### With Groups
3535+3636+Create collapsible groups for organizing content hierarchically.
3737+3838+<Example src={WithGroups} />
3939+4040+## Components
4141+4242+- `Sidebar` - The main container component
4343+- `SidebarHeader` - Header section, can be a link
4444+- `SidebarGroup` - Collapsible group with disclosure panel
4545+- `SidebarSection` - Non-collapsible section with title
4646+- `SidebarItem` - Individual navigation items
4747+4848+## Related Components
4949+5050+- [Link](/docs/components/link) - For navigation links
5151+- [Button](/docs/components/button) - Used in SidebarGroup
5252+- [Flex](/docs/components/flex) - For layout
5353+