A switch has the markup of a custom checkbox but uses the form-switch class to render a toggle switch.
For defined icons switches, use switch-state and icon-state.
Use switch-state class to create uncheck switches.
Use switch-outline and icon-state class to create outline with icons.
Use switch-outline class to create outline.
Use tgl-skewed/tgl-flip class to create variations.
Skewed
Flip
Checked
Flat
Use switch-sm and switch-lg class to create switch sizing.
Use icon-state class to visible icons in switches.