• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

LabelProps

Represents the props of the KendoReact Label component.

NameTypeDefaultDescription

children?

any

The text that will be rendered inside the label element. Can be omitted for editors without label to keep form layout.

className?

string

Sets a class of the Label DOM element.

editorDisabled?

boolean

Specifies if the editor is disabled.

editorId?

string

The id of the editor. Represent the htmlFor property, which will be set to the label element.

editorRef?

any

An optional React ref to the editor. Used to redirect the click event to the editor when it does not contain native form element. To be able to work, the editor should have focus method or actionElement prop on it's ref.

editorValid?

boolean

Specifies the validity of the editor. Used to define the editor is invalid.

id?

string

Represents the id of the label element. The value should be set to the editor ariaLabelledBy property. Can be used when the editor is not containing native form element.

optional?

boolean

If enabled marks the label as optional.

style?

React.CSSProperties

The styles that are applied to the Label.