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

https://github.com/d0x2f/svelte-textarea-autoresize

An autoresizing textarea for Svelte.
https://github.com/d0x2f/svelte-textarea-autoresize

Last synced: over 1 year ago
JSON representation

An autoresizing textarea for Svelte.

Awesome Lists containing this project

README

          

# Svelte Textarea Autoresize

An autoresizing textarea component that adjusts it's height based on it's content.
Based on the wonderful [andarist/react-textarea-autosize](https://github.com/Andarist/react-textarea-autosize).

## Install

```sh
$ npm install svelte-textarea-autoresize
```

## Demo

https://dyl.dog/svelte-textarea-autoresize/

## Use

You can either use the component as is:

```html

import AutoresizingTextArea from 'svelte-textarea-autoresize'

```

or by using the exported `autoresize` function on your existing component like so:

```html

import { autoresize } from 'svelte-textarea-autoresize'

```