PhoenixKitWeb.Components.Dashboard.AdminSidebar (phoenix_kit v1.7.71)

Copy Markdown View Source

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

admin_sidebar(assigns)

Renders the complete admin sidebar navigation.

Attributes

  • current_path - The current URL path for active state detection
  • scope - The current authentication scope for permission filtering
  • locale - The current locale for path generation
  • class - Additional CSS classes

Attributes

  • current_path (:string) - Defaults to "/admin".
  • scope (:any) - Defaults to nil.
  • locale (:string) - Defaults to nil.
  • class (:string) - Defaults to "".