Textarea

A text field of several lines that can grow with its text, as the value of a List row or on its own.

import { Textarea } from "@plexui/react-native"

Examples

Overview

Platforms

iOS 26Android
Native componentText view (multi-line text field)Text field, multi-line (outlined)
In a List rowThe row's bare value under its label, 17/22 lines from the text startThe bare 17sp value under the row's label, 20 in
On its ownA framed field, its lines 11 from the borderThe outlined field, 8dp corners, the label floating on the line in a Field

API

PropTypeDefaultDescription
valuestring—Controlled text
refRef<ComponentRef<typeof TextInput>>—The text input itself, for focus(), blur() and clear()
defaultValuestring—Initial text (uncontrolled)
onChangeText(text: string) => void—Called with the text on every change
variant"outline" | "soft" | "ghost""outline"Fill style; ghost has no frame, for a row or a container that frames it
size"3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl""md"Step of the control scale: the radius, gutter and type of the frame
rowsnumber3Initial row count
autoResizebooleanfalseGrow and shrink with the text
maxRowsnumber—Max rows with autoResize; defaults to the larger of rows and 10
autoSelectbooleanfalseSelect all the text when it takes focus
disabledbooleanfalseDims the textarea and takes no input
readOnlybooleanfalseKeeps the value
invalidbooleanfalseDraws it in the error color
placeholderstring—Shown while the textarea is empty
styleStyleProp<ViewStyle>—Style of the field's box
testIDstring—Test id

Every other prop of React Native's TextInput passes through (maxLength, autoCapitalize, onFocus, onBlur and so on).