CheckBox Appearance
In this article, you will find information about the styling options and rendering of the Kendo UI CheckBox.
For a live example, visit the Appearance Demo of the CheckBox.
Options
The Kendo UI CheckBox supports the following styling options:
-
size
—Configures the overall size of the rendered checkbox. -
rounded
—Configures the border radius applied to the renderedinput
element.
Size
The size
option controls how big or small the rendered CheckBox looks. The structure of the applied class is k-checkbox-{size}
.
The available size
values are:
small
-
medium
(Default) large
The example below shows a basic configuration and how to set the size to "small".
<input id="checkbox" checked />
<script>
$("#checkbox").kendoCheckBox({
size: "small"
});
</script>
Rounded
The rounded option controls how much border radius is applied to the rendered input
element.
The available rounded
values are:
-
small
—Renders a checkbox with small border radius. -
medium
(default)—Renders a checkbox with medium border radius. -
large
—Renders a checkbox with large border radius. -
full
—Renders a checkbox with circular shape.
The following example demonstrates how the rounded
option can be set to full
:
<input id="checkbox" checked/>
<script>
$(document).ready(function(){
$("#checkbox").kendoCheckBox({
rounded: 'full'
});
});
</script>
Rendering
Starting with version R1 2022, the component has a new rendering. For additional information on the decision behind these changes, visit the Components Rendering Overview article.
To review the latest rendering of the component, refer to the HTML specifications in the Kendo UI Themes Monorepo. The tests
folder of the repository contains the rendering for all flavors of the components, providing a clear reference for how their elements are structured. The rendering information can help you customize a component's appearance and behavior by applying custom CSS or JavaScript to suit specific design or functional requirements.