Toggle Button

Two-state button with aria-pressed, like bold in an editor. Not the same as Toggle, which is a settings switch. With Name, it submits its value only while pressed.

Icon, pressed and disabled

@components.ToggleButton(components.ToggleButtonProps{Name: "favorite", Label: "Favorite"}) {
  <span aria-hidden="true">★</span>
}