PasswordInput
v1.0.6Updated 27 Aug 2026Password field with configurable rules (min length default 12, upper/lower/digit/special), top-50 common-password blocklist, 4-segment strength meter (Weak/Fair/Good/Strong), rule checklist, visibility toggle, and option
Preview
Live · 11 stories▸Why this is recommendedformpasswordvalidationstrength+5
The default, out-of-the-box PasswordInput.
- ✓Signup forms
- ✓Password reset flows
- ✓Account-security settings
- Configurable rules (minLength, requireUppercase / lowercase / digit / special)
- Top-50 common-password blocklist (COMMON_PASSWORDS)
- 4-segment strength meter (Weak / Fair / Good / Strong)
- Live rule checklist
- Visibility (eye) toggle
- Secure 16-char mixed-charset generator (showGenerator)
- Custom rules (additive) with errorMessages overrides
- i18n: labels prop overrides strength captions, rule-checklist labels, and button aria-labels
- ✕Login (no rules / meter needed — use Input type="password")
- ✕Plain text input (use Input)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
valueControlled value
—onValueChangeValue change callback
—minLengthMin length (default 12)
—requireUppercaseDefault true
—requireLowercaseDefault true
—requireDigitDefault true
—requireSpecialDefault false
—blockCommonBlock top-50 common passwords (default true)
—customRulesAdditional rules
—showStrengthMeterRender the 4-segment meter
—showRulesRender the rule checklist
—showGeneratorShow the wand-style generator button
—labelsOverride built-in UI strings (i18n)
—