---
type: ai-agent-documentation
version: 2.0
component: Sidebar
status: stable
audience: ai-coding-agents-only
human-readable: false
category: navigation
framework-support:
- vanilla: true
- react: true
- vue: true
- angular: true
- svelte: true
---
# Component: Sidebar
DEFINITION: The Sidebar component provides a collapsible or static navigation panel, typically used for primary application navigation or supplementary content. It supports both CSS-only static and JavaScript-driven interactive modes.
## Installation
```bash
npm install @pm7/core
```
### CSS & JavaScript Import
REQUIRED: Import both the CSS and the main JavaScript file.
```javascript
// ES modules
import '@pm7/core/dist/pm7.css';
import '@pm7/core'; // Imports and initializes all components
// HTML
```
## Required Structure
For an interactive sidebar, the main container (`