Textarea

Multi-line text field that grows with its content and keeps the Input's hairline.

Installation

This component is primitive-agnostic — same source under both flavors.

Basic

Inspect

Optional. The team reads every note.

Growing with content

The field starts at three lines and grows with what is typed or pasted, stopping at ten lines before it scrolls. Browsers without field-sizing keep the minimum height and scroll from there. Resize the demo by typing a few paragraphs — the form below it does not jump.

Invalid

Inspect

Sizes

Inspect

Disabled

Inspect

API Reference

PropTypeDefaultDescription
size"default" | "compact"from SizeProviderPins the text and padding to one step of the size ladder.
aria-invalidboolean—Tints the hairline red until the field receives focus.
disabledbooleanfalseDims the field and removes pointer interaction.
...propsTextareaHTMLAttributes—Every native textarea attribute: value, placeholder, rows, onChange, etc.