Save $100 with our Black Friday deals!

Get $100 OFF with promo code BLACKFRIDAY2024 at checkout until November 30.

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" />