CSS toggle based on the :has pseudo class
- 100% CSS toggle widget.
- Uses the CSS
:has
pseudo element selector. - If that CSS is feature is not available, falls back to semantically correct
<label>
and<input type="checkbox">
. No fluff elements. - Checkbox on left side of the label, toggle on right side of the label.
- Customize with CSS variables.
Public Domain