UNPKG

@cimpress/react-components

Version:
11 lines 454 B
import React, { useState } from 'react'; import { TextArea } from '@cimpress/react-components'; function TextAreaExample() { const [text, setText] = useState(''); const onInputChange = (e) => { setText(e.target.value); }; return React.createElement(TextArea, { name: "description", label: "Description", value: text, onChange: e => onInputChange(e) }); } export default TextAreaExample; //# sourceMappingURL=textAreaExample.js.map