Bootstrap switch/toggle is a simple component used for activating one of two predefined options. Commonly used as an on/off button.

Detailed documentation and more examples you can find in our Bootstrap Toggle Docs


Basic examples

Default switch

A switch has the markup of a custom checkbox but uses the .custom-switch class to render a toggle switch. Switches also support the disabled attribute.

Material switch MDB Pro component

Material Design styling for the Bootstrap Switch component