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 fractalsvelte
Import
<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

PropTypeDefaultDescription
valuestring''The selected value. Supports bind:.
placeholderstring-Placeholder text shown when empty.
disabledbooleanfalsePrevents interaction while preserving semantic state.
namestring-The form field name submitted with the value.
rowsnumber4Initial visible row count.