InputPassword
Password-specific ARCUI input with built-in accessible visibility behavior.
InputPassword is intentionally a thin specialization of Input.
Usage
const [password, setPassword] = useState("");
<InputPassword
label="Password"
value={password}
onChangeText={setPassword}
/>Visibility action
ARCUI owns the password visibility action and uses localized provider strings for its accessible label.
inputPasswordShowAccessibilityLabel
inputPasswordHideAccessibilityLabelUse the provider Localization API to translate those labels.
Loading
<InputPassword
value={password}
onChangeText={setPassword}
loading={submitting}
/>Loading replaces the visibility affordance while preserving password semantics.
Inherited Input behavior
InputPassword inherits supported Input field behavior, including:
- controlled or uncontrolled native text ownership;
labelanderror;disabledandactive;- leading icon;
- native TextInput props that remain semantically valid;
style,inputStyle,testID, and React 19 ref-as-prop.
It intentionally removes Input APIs that would conflict with password behavior, including:
type
iconRight
rightAction
clearable
secureTextEntry
autoCapitalize
autoCorrect
spellCheckThose behaviors are owned by the password specialization rather than consumer overrides.
Validation
Password requirements are application/business logic. ARCUI does not prescribe a password policy primitive.
Pass validation presentation through the normal error prop when appropriate.
Testing
Use testID where the public component contract exposes it so application tests can target the ARCUI-owned root without depending on visual implementation details. Component-specific stable descendants may use documented suffixes.
For provider setup and the dedicated react-native-arc-ui/testing entrypoint, see Testing.
API Reference
Also inherits: TextInputProps
| Prop | Type | Default | Description |
|---|---|---|---|
| ref? | Ref<TextInput> | — | React 19 ref-as-prop. |
| label? | string | — | — |
| error? | string | — | — |
| disabled? | boolean | false | Fully disabled semantic state. |
| active? | boolean | true | Whether the field is currently active in the interaction flow. active=false uses ARCUI's inactive presentation and prevents editing without representing the field as the disabled visual state. |
| iconLeft? | TIconType | — | ARCUI-owned decorative built-in icon. |
| loading? | boolean | false | Shows loading feedback in the trailing slot. |
| style? | StyleProp<ViewStyle> | — | Root field style. Use inputStyle for the native TextInput itself. |
| inputStyle? | StyleProp<TextStyle> | — | — |
| testID? | string | — | Applied to the ARCUI field root. The native TextInput receives `${testID}-input`. |
Generated from the ARCUI 1.1.x TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
The generated table above covers ARCUI-owned public props from the source-aligned type snapshot. Native inherited surfaces remain available where the public type extends React Native props.
Motion
InputPassword delegates field motion to Input. Password visibility remains semantic React state inside the specialization while visual field transitions use the base Input motion model.
See Motion for the library-wide model.
Performance
Keep application semantics at normal React update cadence. ARCUI components avoid using React state as a frame-by-frame animation driver; use the component callbacks and let Reanimated own continuous visual work.
See Performance for broader guidance.
Accessibility
ARCUI uses native roles, labels, semantic accessibility state, centralized font scaling, and localizable ARCUI-owned strings where the component owns behavior text. Consumer accessibility overrides remain available when they do not conflict with component correctness.
See Accessibility for the library-wide model.
Theming
This component resolves its normal presentation from ARCUI tokens and active theme context. Prefer token configuration for system-wide design changes and component props for genuine instance-level exceptions.
Relevant token areas include:
colors.*.input
sizings.input
radius.input
border.input
typography.input
animationsTop-level token overrides are shallow. Compose changed built-in namespaces from defaultTokens rather than relying on recursive merge behavior.
Try it live
Open the existing React Native Snack to explore InputPassword interactively.