Password
A secure password input component with visibility toggle and strength indicator options.
Basic Usage
Basic Password Input
import { Password } from 'fluxo-ui';
function MyComponent() {
const [password, setPassword] = useState('');
return (
<Password
label="Password"
placeholder="Enter your password"
value={password}
onChange={(e) => setPassword(e.target.value)}
/>
);
}States
Password Input States
<Password
label="Normal"
placeholder="Enter password"
value={password}
onChange={(e) => setPassword(e.value)}
/>
<Password
label="Disabled"
placeholder="Disabled"
value={password}
onChange={(e) => setPassword(e.value)}
disabled
/>Import
import { Password } from 'fluxo-ui';Props
valuestringCurrent value of the password input (controlled)
valuestringCurrent value of the password input (controlled)
placeholderstringPlaceholder text
placeholderstringPlaceholder text
labelstringLabel text
labelstringLabel text
errorstring | booleanError message string (also marks invalid). Pass `true` to mark invalid without a message
errorstring | booleanError message string (also marks invalid). Pass `true` to mark invalid without a message
invalidbooleanForce the field into an invalid state without an error message
invalidbooleanForce the field into an invalid state without an error message
helperTextReactNodeHelper text rendered under the input and linked via aria-describedby
helperTextReactNodeHelper text rendered under the input and linked via aria-describedby
disabledbooleanfalseDisable the input
disabledbooleanfalseDisable the input
readonlybooleanfalseMake the input read-only
readonlybooleanfalseMake the input read-only
requiredbooleanfalseMark the input as required
requiredbooleanfalseMark the input as required
toggleablebooleantrueShow password visibility toggle button
toggleablebooleantrueShow password visibility toggle button
showPasswordbooleanControlled password visibility state
showPasswordbooleanControlled password visibility state
maxLengthnumberMaximum character limit
maxLengthnumberMaximum character limit
minLengthnumberMinimum character requirement
minLengthnumberMinimum character requirement
autoCompletestring"current-password"Auto-complete hint
autoCompletestring"current-password"Auto-complete hint
autoFocusbooleanfalseAuto focus the input on mount
autoFocusbooleanfalseAuto focus the input on mount
idstringUnique identifier for the input
idstringUnique identifier for the input
namestringName attribute for the input
namestringName attribute for the input
onChangefunctionChange event handler
onChangefunctionChange event handler
classNamestringAdditional CSS classes
classNamestringAdditional CSS classes
strengthMeterboolean | PasswordStrengthMeterPropsWhen truthy, render a PasswordStrengthMeter wired to the input value. Pass props (without value) to configure rules, allowed characters, thresholds, custom rules, and meter style
strengthMeterboolean | PasswordStrengthMeterPropsWhen truthy, render a PasswordStrengthMeter wired to the input value. Pass props (without value) to configure rules, allowed characters, thresholds, custom rules, and meter style
Features
Visibility Toggle
Built-in eye icon button to reveal or hide the password text
Controlled Visibility
Manage the visible state externally via the showPassword prop
Validation States
Error messages, required marking, disabled and readonly modes
AutoComplete Hint
Configurable autocomplete attribute for password managers and browsers
Accessibility
ARIA labels, keyboard focus, and screen-reader-friendly toggle button
Theming
Full dark/light + 5 brand themes via CSS variables — zero extra config