Input
A text input with label, helper and error state.
v0.3.1NativeWindStyleSheetiOSAndroidExpo Go
Preview
Installation
npx nativra-cli add inputWrites Input.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 1 registry dependency. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | undefined | Form label displayed above input |
| placeholder | string | undefined | Ghost hint when input is empty |
| value | string | undefined | Controlled input value |
| error | boolean | false | Renders red border and activates error messaging |
| errorMessage | string | undefined | Helper text shown below input when error is true |
| disabled | boolean | false | Disables typing and dims styling |
| onChangeText | (text: string) => void | undefined | Text change callback |
Source
Exactly what the CLI writes, before your import aliases are applied.
Dependencies
Used by
- Auth FlowTemplateA complete mobile authentication template with Sign In, Sign Up, Forgot Password, and OTP verification steps.
- Booking FlowTemplateAppointment booking in three steps: date and free time slots, contact details with phone, a summary to confirm, then a success screen.
- CreditCardInputComponentCard number, expiry and CVC fields with formatting, brand detection, Luhn validation and auto-advance.
- Login FormBlockA full authentication block with email, password, and sign-in action.
- Profile FlowTemplateProfile screen with avatar, bio, stats and grouped settings, plus an edit mode with validation, photo change and async save.
- Register FormBlockSign-up form with name, email, password and confirm, inline validation, terms consent and autofill hints.