New to Telerik UI for Blazor? Download Free 30-day trial
Switch - Labels
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Nope
By design, the Switch does not render any labels when the component is styled with the Bootstrap or Material theme.
To change the default setup and achieve any of the additional predefined layouts, refer to
this
knowledge base for showing the labels in Bootstrap and Material or the article on changing the Switch layout
in the kendo-themes Wiki.
- Labels.razor
Loading the demo source code...please wait.
Description
The Telerik Blazor Switch allsows you to set your own text in the switch labels that correspond to the on and off states.
This Blazor Switch - Labels demo is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik Blazor components and their features in action. View the source code of each of the demos or directly adapt and edit them, including their theme appearance, in some of our dedicated playgrounds for Blazor projects - Telerik REPL for Blazor.