structyl

Textarea

stable

A styled multi-line text input.

Basic usage

Examples

With character count

Combine with state to show a live character counter.

0/200

Textarea states

Textarea keeps native behavior while matching input focus, invalid and disabled styling.

Features

  • Smooth focus ring.
  • Wraps the native textarea.

Installation

bash
pnpm dlx structyl add textarea

API Reference

Textarea

A styled multi-line text input. Forwards all native textarea props.

PropTypeDefault
rowsnumber

Visible number of text lines.

disabledboolean

Disable the textarea.

false
classNamestring

Additional Tailwind classes, merged with the component defaults.

Textarea | structyl