Radzen Blazor ToggleButton is a button that changes its appearance or color when activated and returns to its original state when deactivated.
These demos showcase a toggle button with two-way value binding, customizable active state appearance using ToggleShade and ToggleStyle, multiple variants (filled/flat/outlined/text), content options (text/icons/images) with ToggleIcon for state changes, different sizes (ExtraSmall/Small/Medium/Large), and disabled states—perfect for filtering and category selection.
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. |
Radzen Blazor Components, © 2018-2025 Radzen.
Source Code licensed under
MIT