svelte-textarea-auto-height

1.1.0 • Public • Published

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>

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i svelte-textarea-auto-height

    Weekly Downloads

    1

    Version

    1.1.0

    License

    GNU GPL V3

    Unpacked Size

    38.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • sc00