Search results

Set disabled state in Blazor Toggle Switch Button component

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