---
path: components/switch/overview
title: Overview
position: 1
seo_title: Overview of the Switch Component
seo_description: Learn about the basic features of the Telerik and Kendo UI
  Switch component and its types, check out the extensive set of available
  options in its live demo, and master its appearance by setting the size and
  track and thumb border radiuses as you wish on the fly.
---
## Switch Overview

A Switch displays two exclusive choices and enables the user to toggle the state of a single item to on (checked) and off (unchecked). On mobile devices and depending on the context of their usage, the Switch is often used as an alternative to Checkboxes and RadioButtons.

### L﻿ive Demo

<LiveDemo data='{"links":[{"text":"Angular","url":"https://www.telerik.com/kendo-angular-ui/components/inputs/switch/appearance/"},{"text":"Blazor","url":"https://demos.telerik.com/blazor-ui/switch/appearance"},{"text":"jQuery","url":"https://demos.telerik.com/kendo-ui/switch/appearance"},{"text":"React","url":"https://www.telerik.com/kendo-react-ui/components/inputs/switch/appearance/"},{"text":"Vue","url":"https://www.telerik.com/kendo-vue-ui/components/inputs/switch/appearance/"},{"text":"ASP.NET Core","url":"https://demos.telerik.com/aspnet-core/switch/appearance"},{"text":"ASP.NET MVC","url":"https://demos.telerik.com/aspnet-mvc/switch/appearance"}],"demo":"components/switch/overview"}'></LiveDemo>

### Appearance

Switches provide built-in styling options that grant visually appealing and flexible rendering experience.

Apart from the default vision of the Telerik and Kendo UI Switch, the component supports alternative styling options which enable you to configure the individual aspects of its appearance.

#### States

Depending on the action you want to imply through its appearance, the Telerik and Kendo UI Switch can acquire the following states which you can set by using the following classes:

* `.k-switch-on`&mdash;The checked state of a Switch indicates that a certain option has been activated.
* `.k-switch-off`&mdash;The unchecked state of a Switch indicates that a certain option has been deactivated.
* The normal state of a Switch indicates that the component is clickable.
* `k-hover`&mdash;The hover state of a Switch is displayed when the user hovers over the component.
* `k-focus`&mdash;The focus state is a result of spotlighting the component by using a mouse or a keyboard.
* `k-disabled`&mdash;The disabled state of a Switch indicates that the component is temporarily unclickable because, for example, the page requires additional user input or something important is missing before users continue to the next step. To indicate that they are unavailable, disabled Switches are usually faded, slightly out of focus, and show a subdued text label.

#### Anatomy

The anatomy of the Switch summarizes the elements of the component. Depending on its elements, the Telerik and Kendo UI Switches can be any of the following types:

* A Switch with a switch label
* A Switch without a switch label

By design, when the component is styled with the KendoReact Bootstrap or Material theme, the Switch doesn't render a label. To change the default setup and achieve any of the additional predefined layouts, refer to the article on [changing the Switch layout](https://github.com/telerik/kendo-themes/wiki/Change-the-Switch-Layout) in the `kendo-themes` Wiki. For more information, refer to [issue #567](https://github.com/telerik/kendo-themes/issues/567).

Any Switch includes the track and the thumb main elements:

* The track is the movable part of the Switch, which indicates if the component is on or off.
* The thumb is the stationary part of the Switch.

The next image shows the anatomy of a Switch and includes the following elements:

<BlueprintImage data='{"description":"","labels":[{"text":"Track"},{"text":"Thumb"},{"text":"Label (optional)"}]}'>![A Telerik and Kendo UI Switch component with the track, thumb, and optional label elements.](images/components-switch-overview-anatomy.png "Anatomy and elements of a Telerik and Kendo UI Switch including the track, thumb, and optional label elements.")</BlueprintImage>

#### Size

The Switch provides the `size` configuration option that enables you to control how big or small the rendered Switch will be. Switches also provide options for size customization.

`size` provides the following available options:

* `small`&mdash;Renders small switches, which are suitable for compact components, such as the Toolbar, where the available space is limited.
* `medium` (default)&mdash;Renders a medium switch.
* `large`&mdash;Renders large switches, which are suitable for adaptive components and mobile devices.
* `none`&mdash;Does not set a `size` and allows you to add your own, custom value.

<BlueprintImage data='{"description":"","labels":[{"text":"Small"},{"text":"Medium (default)"},{"text":"Large"}]}'>![Three Telerik and Kendo UI Switch components demonstrating the small, default medium, and large sizes respectively.](images/components-switch-overview-size.png "Available sizes in the Telerik and Kendo UI Switch component including small, default medium, and large.")</BlueprintImage>

#### Track Border Radius

For its track element, the Switch provides the `trackRounded` option which enables you to control how much border radius will apply to the track of the rendered component.

`trackRounded` provides the following available options:

* `small`&mdash;Renders a border radius of 2 px.
* `medium`&mdash;Renders a border radius of 4 px.
* `large`&mdash;Renders a border radius of 6 px.
* `full` (defeault)&mdash;Renders a border radius of 9999 px.
* `none`&mdash;Does not set a `rounded` and allows you to add your own, custom value.

#### Thumb Border Radius

For its thumb element, the Switch provides the `thumbRounded` option which enables you to control how much border radius will apply to thumb of the rendered component.

* `small`&mdash;Renders a border radius of 2 px.
* `medium`&mdash;Renders a border radius of 4 px.
* `large`&mdash;Renders a border radius of 6 px.
* `full` (default)&mdash;Renders a border radius of 9999 px.
* `none`&mdash;Does not set a `rounded` and allows you to add your own, custom value.

Even though you can apply different border radiuses to the thumb and track elements, it is better if their values match to create a visually appealing style, as shown in the next image.

<BlueprintImage data='{"description":"","labels":[{"text":"Small"},{"text":"Medium "},{"text":"Large"},{"text":"Full (default)"}]}'>![Four Telerik and Kendo UI Switch components demonstrating the small, medium, large, and default full border radiuses respectively.](images/components-switch-overview-border-radius.png "Available border radiuses in the Telerik and Kendo UI Switch component including small, medium, large, and default full.")</BlueprintImage>

### Framework-Specific D﻿ocumentation

For specific information about the component, refer to its official product documentation:

<Wrap>
<ExternalResource data='{"title":"Kendo UI for Angular Switch","description":"Find more information about the Kendo UI for Angular Switch in the official product documentation of the component.","url":"http://www.telerik.com/kendo-angular-ui/components/inputs/switch/"}'>![Kendo UI for Angular logo.](/images/angular-logo.svg)</ExternalResource>

<ExternalResource data='{"title":"Telerik UI for Blazor Switch","description":"Find more information about the Telerik UI for Blazor Switch in the official product documentation of the component.","url":"https://docs.telerik.com/blazor-ui/components/switch/overview"}'>![Telerik UI for Blazor logo.](/images/blazor-logo.svg)</ExternalResource>

<ExternalResource data='{"title":"Kendo UI for jQuery Switch","description":"Find more information about the Kendo UI for jQuery Switch in the official product documentation of the component.","url":"https://docs.telerik.com/kendo-ui/controls/editors/switch/overview"}'>![Kendo UI for jQuery logo.](/images/jquery-logo.svg)</ExternalResource>

<ExternalResource data='{"title":"KendoReact Switch","description":"Find more information about the KendoReact Switch in the official product documentation of the component.","url":"http://www.telerik.com/kendo-react-ui/components/inputs/switch/"}'>![KendoReact logo.](/images/react-logo.svg)</ExternalResource>

<ExternalResource data='{"title":"Kendo UI for Vue Switch","description":"Find more information about the Kendo UI for Vue Switch in the official product documentation of the component.","url":"http://www.telerik.com/kendo-vue-ui/components/inputs/switch/"}'>![Kendo UI for Vue logo.](/images/vue-logo.svg)</ExternalResource>

<ExternalResource data='{"title":"Telerik UI for ASP.NET Core Switch","description":"Find more information about the Telerik UI for ASP.NET Core Switch component.","url":"https://docs.telerik.com/aspnet-core/html-helpers/editors/switch/overview"}'>![Telerik UI for ASP.NET Core logo.](/images/core-logo.svg)</ExternalResource>

<ExternalResource data='{"title":"Telerik UI for ASP.NET MVC Switch","description":"Find more information about the Telerik UI for ASP.NET MVC Switch component.","url":"https://docs.telerik.com/aspnet-mvc/html-helpers/editors/switch/overview"}'>![Telerik UI for ASP.NET MVC logo.](/images/mvc-logo.svg)</ExternalResource>

</Wrap>
