defmodule PyrauiWeb.DocsLive.SwapDocs do use PyrauiWeb, :html def render(assigns) do ~H"""

Swap

Toggle between two states using animated swap transitions.

Mode Toggle

<:on> <.icon name="hero-moon" class="w-4 h-4" /> Dark Mode <:off> <.icon name="hero-sun" class="w-4 h-4" /> Light Mode <:on> Sound On <:off> Sound Off

    <.swap id="theme-swap" active={@dark_mode}>
      <:on>Dark</:on>
      <:off>Light</:off>
    </.swap>
            
""" end end