svelte-textarea-auto-height Svelte Themes

Svelte Textarea Auto Height

svelte-textarea-auto-height

A svelte action that automatically resizes input fields based on their value.

Install

$ npm install svelte-textarea-auto-height

Usage

<script>
  import { autoHeight } from 'svelte-textarea-auto-height';
</script>

<textarea
  use:autoHeight
  cols="30"
  placeholder="Type and watch me resize!"
></textarea>

Top categories

Loading Svelte Themes