ngx-textarea-autosize
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

ngx-textarea-autosize

Angular 2+ plugin to automatic height control of textarea to fit the content.

Installation:

NPM:

npm install --save ngx-textarea-autosize

Yarn:

yarn add ngx-textarea-autosize

Usage:

Import module to your @NgModule:

import { TextareaAutosizeModule } from 'ngx-textarea-autosize';
 
@NgModule({
  imports: [
    TextareaAutosizeModule
  ]
})

Add directive to your textarea

<textarea autosize>Some text</textarea>

Package Sidebar

Install

npm i ngx-textarea-autosize

Weekly Downloads

3,412

Version

2.0.3

License

MIT

Unpacked Size

64.2 kB

Total Files

23

Last publish

Collaborators

  • evseevdev