Overview
Sidebar provides a collapsible navigation panel with support for menu sections, user profile, and mobile responsive behavior.Import
Basic Usage
With User Section
With Sections
Collapsible Sidebar
Input Properties
Array of menu sections with items
Simple menu items array (alternative to sections)
Title for the menu section
Display the user profile section
Show user avatar in user section
Show user name in user section
Show user email in user section
Show logout button in user section
Name displayed in user section
Email displayed in user section
Configuration for user avatar
Path to logo image
Application title displayed in header
Whether sidebar can be collapsed
Show collapse toggle button
Display the logo
Close mobile sidebar on Escape key
Trap focus within sidebar when open (mobile)
Output Events
Emitted when logout button is clicked
Emitted when mobile sidebar is closed
Interfaces
Features
- Responsive: Mobile-friendly with overlay mode
- Collapsible: Desktop collapse functionality
- User section: Display user info and logout
- Panel menus: Expandable menu sections
- Router integration: Navigation with Angular Router
- Focus trap: Keyboard navigation support
- Auto-close: Closes on route change (mobile)
- Accessibility: Full keyboard and screen reader support
Accessibility
- ARIA labels and roles
- Keyboard navigation (Tab, Escape)
- Focus management
- Screen reader announcements
- Focus trap in mobile mode
