Skip to main content

Variable: TextInput

const TextInput: ForwardRefExoticComponent<TextInputProps & object & RefAttributes<TextInput>>

Defined in: packages/@mapples/ui/src/components/inputs/TextInput/TextInput.tsx:32

A customizable text input component with built-in styling support.

The TextInput component extends React Native's TextInput with additional styling capabilities through the @mapples/style system. It supports all standard TextInput properties and behaviors.

Example

<TextInput
placeholder="Enter your text"
value={text}
onChangeText={setText}
styled={{
style: {
borderWidth: 1,
borderColor: 'gray',
padding: 12,
borderRadius: 8
}
}}
/>