The Label component enables you to provide a label functionality to React components. It supports labelling both form elements (e.g.:
input element) and custom focusable elements. It can contain Kendo React Input components such as KendoReact
NumericTextBox, or HTML elements like
The following example shows how to set up the Label component:
- Add the Label component and the desired editor next to it.
- Set the
editorIdproperty of the Label and the
idproperty of the editor.
The Label is part of the KendoReact Labels component library. The procedures for installing, importing, and using the Labels are identical for all components in the package. To learn how to use the Label and the rest of the Labels, see the Getting Started with the KendoReact Labels guide.
- Editors with Invalid State—You can set the Label in invalid state.
- Optional—You can make the Label as option.
- Without Form Element—You can associate the Label with DOM elements that are