Set disabled state in Blazor Toggle Switch Button Component

4 Aug 20211 minute to read

Toggle Switch Button can be disabled by setting the Disabled property to true.

The following example illustrates how to disable support in Toggle Switch Button component.

@using Syncfusion.Blazor.Buttons

<SfSwitch Disabled="true" @bind-Checked="isChecked"></SfSwitch>

@code {
    private bool isChecked = false;

Output be like

Switch Sample