svelte-textarea-autosize Svelte Themes

Svelte Textarea Autosize

A textarea version that enable auto size for svelte.

Svelte textarea auto size

A lightweight Svelte component to get a textarea that automatically adjusts its height.

version 1.0.6

Warning: only version 1.0.4 is stable

Installation

npm i @theprimebuilder/svelte-textarea-autosize

or

bun i @theprimebuilder/svelte-textarea-autosize

Information

The Svelte Textarea Auto-size component accepts 3 main props:

  1. Value
  • Description: The value are the data (string) type you want to pass to your textarea for modification. It supports Svelte 5 $bindable().
  1. Placeholder
  • Description: The default text displayed when the textarea is empty.
  1. Class
  • Description: Used for custom CSS styling.

Additional: It also supports all standard