<TextareaInput> Component

A textarea input to be used within Formik forms.

Share
Code Editor
<TextareaInput
field={{ name: 'example', value: 'test', readOnly: true }}
form={{ errors: {}, touched: {} }}
/>

Where it's used

0.x.x
Loading 0.x.x releases...
1.x.x
Loading 1.x.x releases...

Props

NameDescription
field*
object
Props for the input element, supplied by Formik .
form*
object
Form data including error and touched info, supplied by Formik .
label
string
Label text, HTML allowed.
placeholder
string
Placeholder text for the field
className
string
Optional className to add to the root element
theme
object
Controls the appearance of the text input. theme.background should be one of ["light", "dark", "brand"].