# `PhoenixKitWeb.Components.Core.ThemeController`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/phoenix_kit_web/components/core/theme_controller.ex#L1)

Shared theme controller component for admin and dashboard.

Provides a dropdown to select from available daisyUI themes.
Supports filtering to show only specific themes.

# `theme_controller`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/phoenix_kit_web/components/core/theme_controller.ex#L42)

Renders a theme controller dropdown.

## Attributes

- `themes` - List of theme names to show, or `:all` for all themes (default: `:all`)
- `id` - Unique ID for the dropdown (default: "theme-dropdown")
- `class` - Additional CSS classes

## Examples

    <%!-- All themes --%>
    <.theme_controller />

    <%!-- Only specific themes --%>
    <.theme_controller themes={["system", "light", "dark", "nord", "dracula"]} />

    <%!-- From config --%>
    <.theme_controller themes={Application.get_env(:phoenix_kit, :dashboard_themes, :all)} />

## Attributes

* `themes` (`:any`) - Defaults to `:all`.
* `id` (`:string`) - Defaults to `"theme-dropdown"`.
* `class` (`:string`) - Defaults to `nil`.
* Global attributes are accepted.

---

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