Swap

Attribute Type Documentation Default Value
Required id * :string
active :boolean false
label :string "Toggle"
appearance :string
class :any
rest :global
Required on * :slot
<:on>Dark Mode</:on>
Required off * :slot
<:off>Light Mode</:off>