An open API service indexing awesome lists of open source software.

https://github.com/markmead/alpinejs-textarea-autogrow

🌲 Alpine JS plugin that auto grows the height of a textarea based on its value
https://github.com/markmead/alpinejs-textarea-autogrow

alpine-js alpinejs alpinejs-plugin javascript

Last synced: about 1 year ago
JSON representation

🌲 Alpine JS plugin that auto grows the height of a textarea based on its value

Awesome Lists containing this project

README

          

# Alpine JS Textarea Grow

Alpine JS plugin `x-grow` adds in auto grow functionality to ``
elements 🌳

## Example

```html

```

This `` will now grow with the content.

## Install

### CDN

```html

```

### NPM/Yarn

```shell
npm i -D alpinejs-textarea-grow

yarn add -D alpinejs-textarea-grow
```

Then you can register the plugin.

```js
import Alpine from 'alpinejs'
import grow from 'alpinejs-textarea-grow'

Alpine.plugin(grow)

window.Alpine = Alpine

Alpine.start()
```

### Stats

![](https://img.shields.io/bundlephobia/min/alpinejs-textarea-grow)
![](https://img.shields.io/npm/v/alpinejs-textarea-grow)
![](https://img.shields.io/npm/dt/alpinejs-textarea-grow)
![](https://img.shields.io/github/license/markmead/alpinejs-textarea-autogrow)