1.1.0 • Published 2 years ago

svelte-textarea-auto-height v1.1.0

Weekly downloads
-
License
GNU GPL V3
Repository
github
Last release
2 years ago

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>