Command Palette

Search for a command to run...

Docs
Password Strength Input

Password Strength Input

A password input with real-time strength indicator and requirements checklist

Loading...

Installation

Props

PropTypeDefaultDescription
valuestring""Controlled input value
onChange(value: string) => void-Callback when value changes
placeholderstring"Password"Placeholder text for the input field
minLengthnumber8Minimum required password length
showStrengthCirclebooleantrueWhether to show the strength indicator circle

Examples

Custom Minimum Length

<PasswordStrengthInput minLength={10} placeholder="Enter a strong password" />

With Change Handler

const handlePasswordChange = (password: string) => {
  console.log("Password strength:", password.length >= 8 ? "Good" : "Weak");
  // Process the password
};
 
<PasswordStrengthInput onChange={handlePasswordChange} />;