Admin sidebar component for the PhoenixKit admin panel.
Renders the admin navigation using registry-driven Tab structs instead of hardcoded HEEX. Supports:
- Permission-gated tabs (filtered by Registry)
- Module-enabled filtering (filtered by Registry)
- Dynamic children for Entities and Publishing
- Subtab expand/collapse
- Full reuse of the TabItem component for consistent rendering
Usage
<.admin_sidebar
current_path={@current_path}
scope={@phoenix_kit_current_scope}
locale={@current_locale}
/>
Summary
Functions
Renders the complete admin sidebar navigation.
Functions
Renders the complete admin sidebar navigation.
Attributes
current_path- The current URL path for active state detectionscope- The current authentication scope for permission filteringlocale- The current locale for path generationclass- Additional CSS classes
Attributes
current_path(:string) - Defaults to"/admin".scope(:any) - Defaults tonil.locale(:string) - Defaults tonil.class(:string) - Defaults to"".