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
- Host: GitHub
- URL: https://github.com/markmead/alpinejs-textarea-autogrow
- Owner: markmead
- License: mit
- Created: 2022-06-10T14:29:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T08:15:11.000Z (over 1 year ago)
- Last Synced: 2025-03-24T20:12:28.869Z (over 1 year ago)
- Topics: alpine-js, alpinejs, alpinejs-plugin, javascript
- Language: JavaScript
- Homepage: https://js.hyperui.dev/examples/form-textarea-autogrow-plugin
- Size: 21.5 KB
- Stars: 22
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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



