Components
iOSAndroid
Installation
pnpm dlx @docyrus/cli add @docyrus/rn-textareaUsage
import { Textarea } from '@/components/docyrus-native/textarea';
<Textarea placeholder="Enter description..." />
<Textarea rows={5} size="lg" />
<Textarea invalid placeholder="Required field" />API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'md' | Input size |
disabled | boolean | false | Disable interaction |
invalid | boolean | false | Show invalid state |
rows | number | 3 | Minimum visible rows |
className | string | — | Additional CSS classes |
inputClassName | string | — | TextInput CSS classes |
All standard TextInputProps are also supported (except style and multiline).
Type Exports
| Type | Description |
|---|---|
TextareaProps | Props for Textarea component |
TextareaSize | 'sm' | 'md' | 'lg' |