Components
    • Animation
    • Buttons
    • Charts
    • Common Utilities
    • Conversational UI
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Grid
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListBox
    • ListView
    • Notification
    • PDF Processing
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • Sortable
    • Tooltip
    • TreeList
    • TreeView
    • Upload
    Sample Applications
    Styling & Themes
    Common Features
    Project Setup
    Changelog

Label

A Stateless Functional Component.

Represents the KendoReact Label 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'));

props

LabelProps

The props of the Label component.

In this article

Not finding the help you need?