Textarea

Textarea

Textarea component is used for multi-line text input, such as messages, comments, and descriptions.

Examples
API

Textarea props extends the textarea HTML attributes.

PropdescriptionTypeDefault
typography

Typography token applied to the textarea

keyof DevupThemeTypography

undefined

error

Whether the textarea is in an invalid state

boolean

false

errorMessage

Validation message shown below the textarea when error is true

string

undefined

rows

Visible text rows

number

3

classNames

Custom class names for inner elements

{
container?: string

textarea?: string

errorMessage?: string

}

undefined

colors

Custom color variables for the textarea

{
primary?: string

error?: string

text?: string

border?: string

background?: string

placeholder?: string

focusRing?: string

}

undefined