um

Toggle

A button that is on or off, and toggle_group, a run of them joined into a segmented control a form submits. Native radios and checkboxes drawn as buttons, so the arrow keys move the choice and no script is needed.

Toggles

Without a name: a button whose aria-pressed the script flips. With one, a checkbox drawn as a button, submitted with the form.

Toggle groups

One of many as radios, several with multiple: true as checkboxes. On a narrow screen the run scrolls sideways.