UNPKG

@quillforms/block-editor

Version:
30 lines 799 B
import { __ } from '@wordpress/i18n'; import TextareaAutosize from 'react-autosize-textarea'; import { css } from 'emotion'; import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; const CustomHTML = ({ value, onChange }) => { return /*#__PURE__*/_jsx(_Fragment, { children: /*#__PURE__*/_jsx("div", { className: css` textarea { min-height: 100px; width: 100%; margin-top: 10px; } `, children: /*#__PURE__*/_jsx(TextareaAutosize, { value: value // @ts-expect-error , onChange: e => onChange(e.target?.value), placeholder: __('Write HTML…', 'quillforms'), "aria-label": __('HTML', 'quillforms') }) }) }); }; export default CustomHTML; //# sourceMappingURL=index.js.map