Skip to content

TextArea

Props

API reference for TextArea. For usage examples, see the React tab.

NameTypeDefault
aboutstring
accessKeystring
autoSavestring
childrenReactNode
colorstring
colsnumber
contentstring
contextMenustring
dangerouslySetInnerHTML{ __html: string | TrustedHTML; }
datatypestring
defaultCheckedboolean
dirNamestring
disabledboolean
exportpartsstring

See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts (opens in new tab)

inlistany
inputMode"decimal" | "email" | "none" | "numeric" | "search" | "tel" | "text" | "url"

Hints at the type of data that might be entered by the user while editing the element or its contents

See: https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute (opens in new tab)

itemIDstring
itemPropstring
itemRefstring
itemScopeboolean
itemTypestring
partstring

See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part (opens in new tab)

prefixstring
propertystring
radioGroupstring
readOnlyboolean
relstring
requiredboolean
resourcestring
resultsnumber
revstring
rowsnumber
securitystring
size"lg" | "md" | "sm"md

Controls padding and typography of the textarea.

titlestring
typeofstring
unselectable"off" | "on"
vocabstring
wrapstring
compactDeprecatedboolean

Use size="sm" instead. This prop is a no-op.