Radzen Blazor Components

Blazor Switch

The Blazor Switch is a toggle switch that binds a bool value for on and off settings.

Get and set the value link

As all Radzen Blazor input components the Switch has a Value property which gets and sets the value of the component. Use @bind-Value to get the user input.

Console log

Keyboard Navigation link

The following keys or key combinations provide a way for users to navigate and interact with Radzen Blazor Switch component.

Press this key To do this
Tab Navigate to a Switch.
Space or Enter Toggle Switch.

Disabled Switch link

To disable the switch, set Disabled="true"

Frequently asked questions

How do I bind the Blazor Switch?

Bind Value to a bool with @bind-Value; it is true when the switch is on and false when off.

Radzen Blazor Newsletter

Get an email when new components and releases ship.

All the tools in one place

Save Hours on Every Project

With Radzen Blazor subscription you get the full toolkit, including:

support

Dedicated support backed by proven expertise

palette

Premium themes and theme editor

widgets

Ready-to-use UI blocks

dashboard_customize

Complete app templates

format_shapes

Visual design-time-experience

Radzen Blazor Studio

Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under MIT

Demos Configuration

Premium Themes

  • Material 3
  • Material 3 Dark
  • Material 3 Expressive
  • Material 3 Expressive Dark
  • Fluent
  • Fluent Dark

Free Themes

  • Material
  • Material Dark
  • Standard
  • Standard Dark
  • Default
  • Dark
  • Humanistic
  • Humanistic Dark
  • Software
  • Software Dark
An error has occurred. This app may no longer respond until reloaded. Reload 🗙