Label
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'));
Name | Type | Default | Description |
---|---|---|---|
props |
|
The props of the Label component. |