The Blazor ToggleButton switches between on and off states, changing its appearance when activated - ideal for toolbars and settings.
Binding Radzen ToggleButton's Value.
Notifications
OFF
Use ToggleButtonShade to define the shade of the ToggleButton's toggled active state.
Use ToggleButtonStyle to define the style of the ToggleButton's toggled active state.
Use Variant for different button variants.
Text, icons and images can be added to a button. Use ToggleIcon in case you need to change the icon when the button is toggled.
Use the Size property to set button size. Available sizes are ExtraSmall, Small, Medium (default), and Large.
Use Disabled="true" to disable a button.
The following keys or key combinations provide a way for users to navigate and interact with Radzen Blazor ToggleButton component.
| Press this key | To do this |
|---|---|
| Tab | Navigate to a ToggleButton. |
| Enter | Click and toggle the focused ToggleButton. |
| Space | Click and toggle the focused ToggleButton. |
Bind Value to a bool with @bind-Value; it is true when the button is toggled on and false when off.
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT