defmodule PyrauiWeb.DocsLive.ThemeSwitchDocs do use PyrauiWeb, :html def render(assigns) do ~H"""
Theme Switch Docs

Theme Switch

Accessible toggles powered by the bundled ThemeToggleHook. Deliver effortless transitions between light and dark palettes with crisp visuals, icons, hints, and layout options.

Sizes & Defaults

Minimal toggles for dashboards, preferences, and settings drawers. Pick a size and add optional helper text for clarity.

Compact by design

Small footprint — perfect for dense tables or settings lists.

Default size with inline labels for balanced readability.

Large and expressive — ideal for onboarding screens or marketing pages.

Default configuration without labels for quick theme access.

    
    <.theme_switch size={:sm} hint="Compact toggle" />
    <.theme_switch size={:md} show_label hint="Inline labels" />
    <.theme_switch size={:lg} show_label label_position={:stacked} hint="Stacked labels" />
    
            

Visual Variants

Swap styles to echo your brand language: solid, glassmorphism, gradient, outline, or pill.

Tone-aware
Solid
Glass
Outline
Gradient
Pill

Icon Styles & Accessibility

Pick iconography that fits your voice: hero icons, minimal dots, or playful emoji — all while keeping ARIA-friendly semantics.

Hook powered

Dual icons

Minimal dots

Emoji

    
    <.theme_switch variant={:gradient} icon_style={:dual} />
    <.theme_switch variant={:outline} icon_style={:minimal} hint="Subtle toggle" />
    <.theme_switch variant={:glass} icon_style={:emoji} show_label label_position={:stacked} />
    
            
""" end end