KendoReact Checkbox Overview
The KendoReact Checkbox lets the user toggle between checked, unchecked and the optional indeterminate states.
The Checkbox is designed to replace the <input type="checkbox">
HTML5 tag and provides the KendoReact specific styling.
The CheckBox is typically used to represent boolean values via a binary checked state. All regular input type="checkbox"
HTML attributes are applicable.
The KendoReact Checkbox component is part of the KendoReact library of React UI components. It is distributed through NPM under the kendo-react-inputs package.
The following example demonstrates the Checkbox component in action.
The Checkbox is part of the KendoReact Inputs component library. The procedures for installing, importing, and using all components in the library are identical. To learn how to use the Checkbox and the rest of the components in the package, see the Getting Started with the KendoReact Inputs guide.
Key Features
- Disabled Checkbox—You can render a disabled Checkbox by setting a single property and keep it disabled until certain requirements are met.
- Controlled mode—You can take advantage of the built-in options that allow you to control the value and the checked state of the Checkbox.
- Default state—To control the initial value of the Checkbox, you can use the
defaultChecked
property. - Labels—You can add labels and set their position. The Checkbox supports custom labels as well.
- Forms support—You can easily integrate the Checkbox with an HTML5 form, the
KendoReact Form component
, or a third-party React form library. - Globalization—The KendoReact Checkbox comes with globalization features that allow you to create applications that can be used all over the world.
- Keyboard navigation—The Checkbox supports numerous keyboard shortcuts that allow users to interact with the component.
- Accessibility—The Checkbox is accessible for screen readers and provides full WAI-ARIA support.
To learn more about the appearance, anatomy, and accessibility of the CheckBox, visit the Progress Design System documentation—an information portal offering rich component usage guidelines, descriptions of the available style variables, and globalization support details.