FloatingLabel
A subclass of React.Component.
Represents the KendoReact FloatingLabel component.
const sizes = ["X-Small", "Small", "Medium", "Large", "X-Large", "2X-Large"];
const App = () => {
const [ddlState, setDdlState] = React.useState();
const editorId = 'ddl-sizes';
return (
<FloatingLabel label={'Shirt Size:'} editorId={editorId} editorValue={ddlState}>
<DropDownList
id={editorId}
value={ddlState}
data={sizes}
onChange={(e) => setDdlState(e.target.value)}
/>
</FloatingLabel>
);
};
ReactDOM.render(<App />, document.querySelector('my-app'));
Name | Type | Default | Description |
---|---|---|---|
props |
|
The props of the FloatingLabel component. |