ngx-auto-resize
v1.0.2
Published
<b>ngx-auto-resize</b> is an Angular package that provides a directive for auto-resizing textarea element in Angular 17 or above projects.
Downloads
8
Maintainers
Readme
Auto resize directive for Angular textarea
Description
ngx-auto-resize is an Angular package that provides a directive for auto-resizing textarea element in Angular 17 or above projects.
Installation
You can install the ngx-autoresize package using npm:
npm install ngx-auto-resize
How to use
step 1: importing the directive
Just import the directive in TS file of the component like this.
@Component({
selector: 'app-root',
standalone: true,
imports: [AutoResize],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
step 2: Using the directive
<textarea AutoResize></textarea>