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.