A switch has the markup of a custom checkbox but uses the .form-switch class to render a toggle switch
.
Use the .switch-state
and icon-state
through defined icons switches.
Use the .bg-*
class through created default switches.
Use the .switch-outline
and .icon-state
class through created outline and icons.
Use the .switch-outline
class through created outline.
Use the .tgl-skewed/tgl-flip
class through created variations.
Skewed
Flip
Checked
Flat
Use the .switch-sm
and .switch-lg
class through defined switch sizing.
Use the .icon-state
class through visible icons in switches.