TextArea

A general purpose muli-line text input field that is used with controlled state manangement.

Props

Name
Type
Default
Description
onChange*
func
The change event handler.
name*
string
A unique semantic name that is connected to the label.
autoSize
bool
Autosizing.
description
string
Additional description information display beneath the input.
disabled
bool
Sets disabled.
errorMessage
string
An error message text that is displayed once isValid is false.
isEmpty
func
A function that takes the value and returns a boolean that indicates an empty state
isValid
bool
Sets the validation state.
label
string
The label text.
loading
bool
Whether the input is loading
maxlength
number
The input max length
mode
compact
onBlur
func
The bur event handler.
onFocus
func
The focus event handler.
placeholder
string
The input placeholder
required
bool
Sets required.
resize
both

|  
horizontal

|  
vertical

|  
none
vertical
Resize options
rows
number
Initial height in lines of text
textareaRef
func, shape
textarea node ref
value
string
The controlled value.

Examples

Description & Error Message

Max length

Rows

Disabled

Loading

Autosize

Unlabelled

Compact Mode