defmodule PyrauiWeb.DocsLive.ThemeSwitchDocs do use PyrauiWeb, :html def render(assigns) do ~H"""
Accessible toggles powered by the bundled ThemeToggleHook. Deliver effortless transitions between light and dark palettes with crisp visuals, icons, hints, and layout options.
Minimal toggles for dashboards, preferences, and settings drawers. Pick a size and add optional helper text for clarity.
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" />
Swap styles to echo your brand language: solid, glassmorphism, gradient, outline, or pill.
Pick iconography that fits your voice: hero icons, minimal dots, or playful emoji — all while keeping ARIA-friendly semantics.
<.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} />