import cx from 'classnames'; import React from 'react'; import css from './textarea-auto-height.module.css'; // -- TYPES export interface ITextAreaAutoHeightProps extends Omit, 'className'> { className: { wrapper?: string; textarea?: string; }; } // -- MAIN function TextAreaAutoHeight({ className, value, ...textareaAttrs }: ITextAreaAutoHeightProps) { const cnWrapper = cx(className.wrapper, css.wrapper); const cnTextarea = cx(className.textarea, css.textarea); return (
{value} {'\n'}