1.0.1 • Published 11 months ago

@acrool/react-auto-height-textarea v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Acrool React Auto Height Textarea

NPM npm npm

npm downloads npm

^1.0.0 support react >=18.0.0 <20.0.0

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={value}
        onChange={e => setValue(e.target.value)}
        placeholder="Type your message"
        rows={1}
    />;
}

License

MIT © Acrool & Imagine

1.0.1

11 months ago

1.0.0

11 months ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.2-alpha.6

2 years ago

0.0.2-alpha.5

2 years ago

0.0.2-alpha.4

2 years ago

0.0.2-alpha.3

2 years ago

0.0.2-alpha.2

2 years ago

0.0.2-alpha.1

2 years ago

0.0.2-alpha.0

2 years ago