defmodule PyrauiWeb.DocsLive.SwapDocs do use PyrauiWeb, :html def render(assigns) do ~H"""
Toggle between two states using animated swap transitions.
<.swap id="theme-swap" active={@dark_mode}>
<:on>Dark</:on>
<:off>Light</:off>
</.swap>