Switch Appearance
The Switch provides predefined appearance options such as different sizes, track border radius and thumb border radius.
Since version 22.1.0, default values of the appearance properties are no longer hardcoded in the component. The default values are inherited from the Kendo theme.
For more information, refer to the Design System documentation.
The following example demonstrates all available appearance options of the Switch in action.
Size
The Switch allows you to customize its width and height. To achieve this utilize the size property. It accepts values of type InputSize.
The size option supports the following values:
smallmediumlarge
The following example demonstrates how to define the size of the Switch.
Track Roundness
The Switch enables you to apply different border radius to the track of the component through the trackRounded property. It accepts values of type InputRounded.
The trackRounded option supports the following values:
smallmediumlargefullnone
The following example demonstrates how to define the border radius of the track.
Thumb Roundness
The Switch enables you to apply different border radius to the thumb of the component through the thumbRounded property. It accepts values of type InputRounded.
The thumbRounded option supports the following values:
smallmediumlargefullnone
The following example demonstrates how to define the border radius of the thumb.