TextInput
Single-line text input with label, helper text, and validation states.
At a glance
- Wraps RN
<TextInput>/ web<input>with a unified label + helper text layout. - Supports
variant: 'default' | 'error' | 'success'for validation feedback.
Web preview
Native preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Visible label tied via aria |
helperText | string | — | Helper / error text below the input |
variant | 'default' | 'error' | 'success' | 'default' | Validation state |
value | string | — | Controlled value |
defaultValue | string | — | Uncontrolled initial value |
onChangeText | (text: string) => void | — | Change handler (text-only) |
disabled | boolean | false | Disables interaction |