Textarea

Install

import {Textarea} from '@xsolla/uikit'

Examples

Basic

Usage

<Textarea name="basic"
          input={{
            value: null,
            onChange: this.onChange
          }}/>

With redux-form

<Field component={Textarea} name="redux-textarea"/>

API

PropertyDescriptionTypeDefault
inputconfig for redux-form or basic textareaobject{}
metameta for redux-form or basic textareaobject{touched: false, error: null}
nameinput namestringnull
sizecan be set to xs, sm, mdstringmd
focusedset focus to textareabooleanfalse
defaultValueset the default value of textareastringnull
placeholderset the placeholder of textareastringnull
disabledset the disabled of textareabooleanfalse
rowsset the rows of textareanumber5