Mobile › Inputs
PasswordField
A password field with a Show / Hide button inside it. Autofill and password managers keep working.
Installation
npx expo install plankui-mobile react-native-safe-area-context expo-hapticsUsage
import { PasswordField } from "plankui-mobile";
const [password, setPassword] = useState("");
<PasswordField value={password} onChangeText={setPassword} />
<PasswordField label="New password" kind="new" hint="Use 8 or more characters." />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | "Password" | Always visible above the field. |
| kind | 'current' | 'new' | 'current' | new asks password managers to suggest a password; current offers the saved one. |
| hint | string | – | Help text under the field. |
| error | string | – | Shown instead of the hint and read out by screen readers. |
| ...TextInputProps | TextInputProps | – | Any React Native TextInput prop except secureTextEntry. |