Save $100 with promo code CHEERS2025

As we are looking forward to an incredible 2025, enjoy our end-of-year promotion! Valid now through January 6th.

See Pricing

Still using Radzen Studio?
Achieve more with Radzen Blazor Studio

Radzen Blazor Studio is our new flagship product and vision of how rapid Blazor application development should be done.

Go to Radzen Blazor Studio

Switch (Blazor)

This article demonstrates how to use the Switch component. Check also the component guide and API reference.

Switch Properties

Name Type Default Description
Name string ‘switch’ + index suffix Unique name of the Switch.
Value string/expression null Switch value.
Disabled boolean/expression false Is Switch disabled.
Visible boolean/expression true Is Switch visible.

For more info about expressions please visit expressions in our documentation.

Switch Events

Name Type Default Description
Change event null Change event of the Switch. New value as event argument.

For more info about event actions please visit event actions in our documentation.

Blazor declaration

<RadzenSwitch Change="SwitchChanged" />