Skip to content

Forms

ITextarea

A multi-line field, with the same sizes and states as IInput.

The model is a string, and rows sets the starting height when you are not using autosize.

Autosize

autosize grows the field with its content instead of scrolling it.

Pass an object to bound the growth. min and max are counted in rows.

Sizes

States

Inside an IFormField, invalid is set for you from the validation state.

Props

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Control scale
rowsnumberStarting height, when not autosizing
autosizeboolean | { min?, max? }falseGrow with the content, optionally bounded in rows
placeholderstringPlaceholder text
disabledbooleanfalseDisables the field
requiredbooleanfalseMarks it required
invalidbooleanError styling; set automatically inside IFormField
idstringgeneratedUseful when an external ILabel targets it
unstyledbooleanDrop built-in classes
classstringMerged with the built-in classes

For a single line use IInput; for a number, INumberInput.