Auto-height Textarea element.
- Auto-height Textarea element.
yarn add @acrool/react-auto-height-textarea
add in your index.tsx
import "@acrool/react-auto-height-textarea/dist/index.css";
add in your App.tsx
import AutoHeightTextarea from '@acrool/react-auto-height-textarea';
const Example = () => {
const [value, setValue] = useState('');
return <Comment
value={value}
onChange={e => setValue(e.target.value)}
placeholder="Type your message"
rows={1}
/>;
}