diff --git a/.k-cell-inner b/.k-cell-inner new file mode 100644 index 000000000..e69de29bb diff --git a/.k-link b/.k-link new file mode 100644 index 000000000..e69de29bb diff --git a/knowledge-base/checkbox-custom-icon.md b/knowledge-base/checkbox-custom-icon.md index f9a32253d..37661effa 100644 --- a/knowledge-base/checkbox-custom-icon.md +++ b/knowledge-base/checkbox-custom-icon.md @@ -1,8 +1,8 @@ --- -title: Change Checkbox Icon -description: How to change the CheckBox icon to a custom one. +title: How to Change Checkbox Icons +description: Learn how to change the Checkbox icon, modify the default check mark and indeterminate icons, and integrate third-party icons. type: how-to -page_title: Custom Checkbox Icon +page_title: How to Change Checkbox Icons slug: checkbox-kb-custom-icon position: tags: @@ -22,69 +22,69 @@ res_type: kb ## Description -How do I change the checkbox icon? I want to use another icon, not the default checkmark. +This knowledge base article answers the following questions: + +* How do I change the Checkbox icon? +* How to change the default check mark icon? +* How to change the icon of the indeterminate state? +* How to integrate custom icons from a third-party library into a Telerik Checkbox component? ## Solution +1. Set a custom CSS class to the Tooltip through the `Class` parameter. This configuration will allow you to target specific Checkbox instances. +2. Use the defiend class to [override the theme styles]({%slug themes-override%}) with the following CSS approach. -Add a `Class` to the CheckBox component. [Override the theme styles]({%slug themes-override%}) and change the default font icon glyphs. +>caption How to change the Checkbox icons -You can replace the icons with different glyphs, even from a different font. You can also change the icon size and color. +````CSHTML + -The `k-icon` CSS class applies the custom font, which contains all [built-in Telerik font icons]({%slug common-features-icons%}). If you will use a different font, remove `k-icon`. +

+ ->caption How to change the checkbox icon - -````CSHTML - - - + Make Indeterminate +

+ +@code { + private bool? CheckBoxValue { get; set; } +} ```` +## See Also +* [Built-in Font and SVG Icons]({%slug common-features-icons%}) +* [Checkbox Indeterminate State]({%slug checkbox-indeterminate-state%}) +