logo-icon
STW UI

TextArea

Textarea allows users to enter text in multiple lines.

Usage

svelte
import { TextArea } from 'stwui';
// OR
import TextArea from 'stwui/text-area'; // for tree shaking

Basic

With Label

With Error

You're doing it wrong!

With Title

With Pills

With Actions

TextArea Props

name string
error string | undefined
placholder string | undefined
value string | undefined
autocomplete 'on' | 'off' | undefined
autocapitalize 'off' | 'none' | 'sentences' | 'words' | 'characters' off
readonly true | undefined
disabled boolean false

TextArea Slots

label <TextArea.Label slot="label" />

TextArea.Label Slots

default

TextArea Class Identifiers

stwui-textarea-wrapper
stwui-textarea
stwui-textarea-error
stwui-textarea-label
stwui-textarea-title
stwui-textarea-pills
stwui-textarea-actions