Overview
PanelMenu is an accordion-style menu component that displays hierarchical navigation items with expand/collapse functionality.Import
Basic Usage
Custom Styling
Allow Multiple Expanded
Input Properties
Title displayed in the panel header
Icon displayed next to the title
CSS class for the icon
Array of menu items to display
Background color of the panel
Text color for menu items
Border radius of the panel
Shadow depth (0-5)
Width of the panel
Hover color for menu items
Allow multiple menu sections to be expanded simultaneously
Whether the panel is open by default
Whether the panel is in collapsed state
Output Events
Emitted when the panel is toggled
Emitted when a menu item is clicked
Emitted when a menu item is expanded or collapsed
Emitted when sidebar needs to expand (for collapsed mode)
MenuItem Interface
Event Interfaces
Features
- Hierarchical navigation: Multi-level nested menu items
- Expand/collapse: Interactive accordion behavior
- Router integration: Works with Angular Router
- Custom styling: Fully customizable colors and dimensions
- Icon support: Display icons with Lucide Angular
- Hover states: Visual feedback on interaction
- Disabled items: Support for disabled menu items
Accessibility
- Keyboard navigation
- ARIA attributes for screen readers
- Focus management
