New to Kendo UI for Angular? Start a free 30-day trial
LabelComponent
Represents the Kendo UI Label component for Angular.
Use the LabelComponent to associate a label with input elements or components.
html
<kendo-label [for]="input" text="First name">
  <kendo-textbox #input></kendo-textbox>
</kendo-label>
Selector
kendo-label
Export Name
Accessible in templates as #kendoLabelInstance="kendoLabel"
Inputs
| Name | Type | Default | Description | 
|---|---|---|---|
for | 
 | 
 Associates the label with a component by a template reference or with an HTML element by  html 
 | |
labelCssClass | 
 | 
 Sets the CSS classes for the label element.
Accepts values supported by the  html 
 | |
labelCssStyle | 
 | 
 Sets the CSS styles for the label element.
Accepts values supported by the  html 
 | |
optional | 
 | 
 | 
 Marks a form field as optional. When enabled, the label displays the  html 
 | 
text | 
 | 
 Sets the text content of the Label. Use this property to describe the input. html 
 |