CleenUI · Forms · TextArea

TextArea

Multi-line text input with auto-resize, character count, and the same validation surface as Input.

storybook.cleenui.com · forms-textarea--controlled
Open in new window

About TextArea

TextArea handles any free-form multi-line text capture. Auto-resize grows the field as the user types up to a configurable maximum, then scrolls — so short inputs stay compact and long inputs stay readable.

A character-count indicator can be enabled to show progress against `maxLength`, with red-zone styling as the user approaches the limit. Validation, sizing, and error-state handling match the Input component so multi-line fields fit naturally into existing forms.

When to use it

  • Description and notes fields in detail forms.
  • Comment and reply composers.
  • Long-form context capture in onboarding and intake forms.
  • Code or markup entry with monospace styling.

Common props

Prop
Type
Description
rows
number
Initial visible row count.
autoResize
boolean
Grow with content up to maxRows.
maxLength
number
Character cap; enables the counter when set.
showCount
boolean
Display the character-count indicator.
error
string
Error message; flips into error styling when set.
⚡ Already in an AI editor?

Set up CleenUI in your tool.

Skip the manual import — ask your AI agent to build with this component. The Builder skill knows its props, variants, and idioms.