New to Telerik UI for BlazorStart a free 30-day trial

Switch Labels

Updated on Aug 24, 2026

On or Off labels are rendered inside the Switch based on its value:

  • OnLabel will be shown when the Switch Value is true
  • OffLabel will be shown when the Switch Value is false

The component allows customization of the labels text through the dedicated parameters. Provide your desired strings for the Switch labels or use a blank space to remove visible labels.

Customize Labels Text

Provide the desired text for the On and Off labels through the corresponding parameters. If the text is longer, you can increase the component Width to ensure the label will be visible.

Example
View Source
Loading ...

Remove Labels

To remove the Switch labels, use a blank space for the OnLabel and OffLabel parameters.

Example
View Source
Loading ...

See Also