Search results

Change Size in Blazor Toggle Switch Button component

The different Toggle Switch Button sizes available are default and small. To reduce the size of default Toggle Switch Button to small, set the CssClass property to e-small.

@using Syncfusion.Blazor.Buttons

<label for='switch1'>Checked</label>
<SfSwitch ID='switch1' CssClass="e-small" Checked="true"></SfSwitch>
<label for='switch2'>Unchecked</label>
<SfSwitch ID='switch2'></SfSwitch>

Output be like

Switch Sample