Toggle Switch
Thales Design System global CSS styles library - Toggle Switch Notice
How to use
Let use the switch now. Shown below is a sample switch:
<label class="qtm-toggle-switch">
<span>Text</span>
<div class="qtm-switch">
<input type="checkbox" />
<span class="qtm-toggle-slider"></span>
</div>
</label>
Change size
You can change size between "small", "medium" and "large". Simply apply the class wanted next to "toggleSwitch". By default, the size is on "medium"
Control the size of a switch using .qtm-small, .qtm-medium or .qtm-large classes. By default, the switch has size medium.
For example :
<label class="qtm-toggle-switch qtm-small">
<span>Small</span>
<div class="qtm-switch">
<input type="checkbox" />
<span class="qtm-toggle-slider"></span>
</div>
</label>
<label class="qtm-toggle-switch qtm-medium">
<span>Mid</span>
<div class="qtm-switch">
<input type="checkbox" />
<span class="qtm-toggle-slider"></span>
</div>
</label>
<label class="qtm-toggle-switch qtm-large">
<span>Large</span>
<div class="qtm-switch">
<input type="checkbox" />
<span class="qtm-toggle-slider"></span>
</div>
</label>