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

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes