Textarea
Wraps a native textarea. It can grow with its content, and it can hold a toolbar inside its border for message composers.
Installation
Copy the command below and run it in your terminal.
Usage
Bind value to read the text. Add autoresize to grow the field with its content instead of showing a resize handle. Children render
below the text inside the same border, which fits a send button or toolbar.
Examples
Basic
0 / 500 characters
With label and description
Disabled
Anatomy
Textarea - Accepts a multi-line value.
<script lang="ts"> import { Textarea } from '@sivir-ui/svelte/components/textarea'; let value = $state( 'The export finished, but three rows were skipped because their dates were empty. Can you check the source file?' ); </script> <div class="w-full max-w-sm"> <Textarea bind:value label="Message" /> </div>