JavaScript & CSS toggle button
12 Animated Accessible Toggle Controls – Theme Toggles
Convert Checkboxes & Radio Buttons Into Grouped Buttons – boxed-check.css
A CSS library that converts normal checkboxes and radio buttons into checkable (toggleable) elements (like buttons and cards) for better UX.
Create Custom Switches With Checkboxes – Toggle Switchy
A pure CSS library which converts the native checkbox inputs into responsive, accessible, SEO-friendly toggle switches.
Create Segmented Controls With Radio Buttons – Toggle Radios
A pure CSS library which converts a group or radios into responsive, customizable, SEO-friendly inline toggle button groups (also called segmented controls).
Dynamic Inline Toggle Button In Vanilla JavaScript – ButtonStrip.js
ButtonStrip.js is a vanilla JavaScript plugin that dynamically generates an inline toggle button to trigger actions when you click on the left or right button.
Radio Input Based Toggle Button Group With Pure CSS
A CSS only solution that converts a series of radio inputs into toggle buttons and groups them in an inline button group with gradients.
iOS Style Toggle Button In Pure CSS
Checkbox Based Toggle Buttons with Pure JavaScript
ToggleableButton.js is a small JavaScript library that converts a regular checkbox input ino a toggleable switch control.
Material Style Toggle Switches with Pure CSS / CSS3
Material Design inspired on / off switches which allows the visitor to toggle the state by clicking or tapping.