Components - Switch Module

A switch is a visual toggle between two mutually exclusive states — on and off.

Check the example on the bottom of the page to see how to add Angular attributes to the component and use it in your pages!

Light style

A regular switch that switches to an “on” state on click.

Skewed style

To edit the text inside this toggle, you must edit the data-toggle-on and data-toggle-off attributes in the HTML code. Depending on the length of the text, you might need to edit the width of of the .switch-button class in the CSS.

Flip style

To edit the text inside this toggle, you must edit the data-toggle-on and data-toggle-off attributes in the HTML code. Depending on the length of the text, you might need to edit the width of of the .switch-button class in the CSS.

Button group style

Show both options at once and switch from one to the other on click.

Active/inactive style

Toggle button to highlight an active or inactive state.

Simple example

A simple usecase to show how this component can be used in your pages.