Atomx Docs
Components

Textarea

Displays a multi-line text input field that grows to fit its content.

Install

npx shadcn@latest add https://atomx.acau.net/r/textarea.json

Usage

Use Textarea for multiline text: comments, descriptions, messages, and configuration values. It uses field-sizing-content to auto-grow as the user types, removing the need for manual resize handles or fixed row counts in most cases. For single-line text, use Input instead. Pair with Label for accessible form fields.

Preview

Textarea with label

Disabled state

Props

Extends React.ComponentProps<"textarea">. All standard <textarea> attributes are forwarded.

PropTypeNotes
disabledbooleanApplies muted styling and removes pointer events.
placeholderstringPlaceholder text shown when the field is empty.
classNamestringAdditional classes merged with the base styles.