TextInput

A customizable TextInput component with theme-based styling.

Installation

Terminal
npx flexnative-cli add "https://registry.flexnative.com/c/text-input.json"

Usage


Importing
import { TextInput } from "@/components/ui/text-input";
Using
<TextInput
placeholder="Enter text"
style={{ margin: 16 }}
/>

Form

API

TextInput

A customizable TextInput component with theme-based styling.


PropTypeDescriptionDefault
placeholderstringPlaceholder text for the input field.-
styleStyleProp<TextStyle>Additional styles for the input.-
placeholderTextColorstringColor for the placeholder text.-
...propsReact.ComponentPropsWithoutRef<typeof RNTextInput>Additional native TextInput props.-