Swap

Switches between two visuals. It is a real button with aria-pressed — a toggle whose state assistive technology cannot see is just a drawing.

Play/pause and favorite

@components.Swap(components.SwapProps{
  Label: "Play or pause",
  On:    pauseIcon(), Off: playIcon(),
})