# `PhoenixKitWeb.Components.Dashboard.AdminSidebar`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.87/lib/phoenix_kit_web/components/dashboard/admin_sidebar.ex#L1)

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}
    />

# `admin_sidebar`

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 `""`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
