• What is KendoReact
  • Getting Started
  • Unstyled Mode
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chart Wizardnew
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Toolsupdated
    • Date Inputs
    • Date Math
    • Dialogsupdated
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChart
    • PDF Processing
    • PDF Viewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • Spreadsheet
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Label

Represents the KendoReact Label component.

A Functional Component.

const sizes = ["X-Small", "Small", "Medium", "Large", "X-Large", "2X-Large"];
const App = () => {
    const ddlRef = React.useRef(null);
    const labelId = 'ddl-sizes-label';
    const editorId = 'ddl-sizes';

    return (
        <div>
            <Label id={labelId} editorId={editorId} editorRef={ddlRef}>
                Shirt Size:
            </Label>
            <DropDownList
                ref={ddlRef}
                id={editorId}
                ariaLabelledBy={labelId}
                data={sizes}
            />
            <br />
        </div>
    );
};

ReactDOM.render(<App />, document.querySelector('my-app'));
NameTypeDefaultDescription

props

LabelProps

The props of the Label component.

In this article

Not finding the help you need?