structyl

Textarea Autosize

stable

A textarea that grows with its content.

Basic usage

Examples

Minimum rows

The textarea starts at minRows and grows as content wraps.

Maximum rows

Set maxRows to stop growth and let the textarea scroll.

Row limits

minRows and maxRows define the growth range.

Features

  • Minimum and maximum row limits.
  • Native textarea props.

Installation

bash
pnpm dlx structyl add textarea-autosize

API Reference

TextareaAutosize

Auto-growing textarea.

PropTypeDefault
minRowsnumber

Minimum rows.

1
maxRowsnumber

Maximum rows before scrolling.

classNamestring

Additional Tailwind classes merged with the component defaults.

Textarea Autosize | structyl