Web Compendium Sitemap

Toggle

Toggles have different states.

Checkbox

Example:

Radio Button

Example:

Toggle Switch

A toggle switch is used to flip the state between two different values; often between 'on' and 'off'. Toggling such a state has an immediate effect (unlike radio buttons or checkboxes), an explicit save or submit is not necessary. Visually, a toggle switch often looks similar to a light switch. [nngroup.com]

HTML does not include a native toggle switch. But there are discussions about adding it and WebKit already supports it [whatwg/html#4180, webkit.org, mozilla/standards-positions#990].

Further resources: