Textarea
A resizable, bindable multiline input.Examples
Installation
Install the package, then import only the components a route uses. Exports are tree-shakable.
Install
pnpm add fractalsvelteImport
<script lang="ts">
import { Textarea } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Textarea } from 'fractalsvelte';
</script>
<Textarea placeholder="Type your message here." />Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | The selected value. Supports bind:. |
placeholder | string | - | Placeholder text shown when empty. |
disabled | boolean | false | Prevents interaction while preserving semantic state. |
name | string | - | The form field name submitted with the value. |
rows | number | 4 | Initial visible row count. |
