@acrool/react-auto-height-textarea
v0.0.3
Published
This is a react method to quickly combine buttons with Auto Height Textarea
Downloads
64
Maintainers
Readme
Acrool React Auto Height Textarea
Features
- Auto-height Textarea element.
Install
yarn add @acrool/react-auto-height-textarea
Usage
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={editValue}
onChange={e => setEditValue(e.target.value)}
placeholder="Type your message"
rows={1}
/>;
}