Textarea

A multi-line text input field for longer content like comments, messages, and descriptions.

Describe what changed and why

Installation

CLI

Install the component using the StarUI CLI:

star add textarea

Examples

States

Disabled, readonly, required, and error states

Minimum 10 characters

Must be under 20 characters

Rows and Resize

Fixed height, auto-grow, and resize control

Character Limit

Reactive counter with color-coded feedback

Bio

A few words about yourself

/ 280

Code Input

Monospace textarea with clipboard and line count

Python

Lines: | Chars:

API Reference

Props

Prop Type Default Description
placeholder str | None None Placeholder text shown when empty
value str | None None Initial text value
signal str | None None Datastar signal for two-way binding
rows int | None None Number of visible text rows (auto-grows when omitted)
maxlength int | None None Maximum number of characters
resize Literal['none','both','horizontal','vertical'] | None None Controls textarea resizing behavior
disabled bool False Whether the textarea is disabled
readonly bool False Whether the textarea is read-only
required bool False Whether the textarea is required
autofocus bool False Auto-focus on page load
cls str '' Additional CSS classes