Skip to main content

Textarea

A multi-line text field, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
labelstring-
descriptionstring-
errorstring-
successstring-Green border, a check icon & this message in place of description.
Green border, a check icon & this message in place of description.
maxLengthnumber-
onChange(event: ChangeEvent<HTMLTextAreaElement>) => void-Called on every input event.
Called on every input event.
shapenone | roundedrounded
disabledbooleanfalseBlocks interaction and dims the whole field, label included.
Blocks interaction and dims the whole field, label included.
requiredbooleanfalseAppends a red asterisk to the label & sets the control's native required attribute.
Appends a red asterisk to the label & sets the control's native required attribute.
classNamestring-
focusboolean | stringtrue