Components

Textarea

Multi-line text input component with size variants and validation.

iOSAndroid
Preview Textarea on your device

Scan with Expo Go

Download Expo Go, then scan the QR code to preview native components.

Installation

pnpm dlx @docyrus/cli add @docyrus/rn-textarea

Usage

import { Textarea } from '@/components/docyrus-native/textarea';

<Textarea placeholder="Enter description..." />
<Textarea rows={5} size="lg" />
<Textarea invalid placeholder="Required field" />

API Reference

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Input size
disabledbooleanfalseDisable interaction
invalidbooleanfalseShow invalid state
rowsnumber3Minimum visible rows
classNamestring—Additional CSS classes
inputClassNamestring—TextInput CSS classes

All standard TextInputProps are also supported (except style and multiline).

Type Exports

TypeDescription
TextareaPropsProps for Textarea component
TextareaSize'sm' | 'md' | 'lg'

On this page