Skip to content

Auto resize directive for input/textarea which resizes element's height based on text written by user.

Notifications You must be signed in to change notification settings

HarshKanjiya/ngx-auto-resize

Repository files navigation

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>

And you are all set. ❤️‍🔥



Example

Click Here

About

Auto resize directive for input/textarea which resizes element's height based on text written by user.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published