Components
iOSAndroid
Installation
pnpm dlx @docyrus/cli add @docyrus/rn-inputUsage
import { Input } from '@/components/docyrus-native/input';
<Input placeholder="Enter text..." />
<Input size="lg" placeholder="Large input" />
<Input invalid placeholder="Invalid input" />API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'md' | Input size |
disabled | boolean | false | Disable interaction |
invalid | boolean | false | Show invalid state |
startIcon | ReactNode | — | Icon at the start |
endIcon | ReactNode | — | Icon at the end |
className | string | — | Additional CSS classes |
inputClassName | string | — | TextInput CSS classes |
All standard TextInputProps are also supported (except style).
Type Exports
| Type | Description |
|---|---|
InputProps | Props for Input component |
InputSize | 'sm' | 'md' | 'lg' |