042
A password field that explains itself: it spots common words, years and keyboard runs, says how long a crack would take, and ticks off what's left in plain words.
akapassword·password strength·password meter
Run this in any project set up for the shadcn CLI. It copies the Password Strength source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/password-strength.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { PasswordStrength } from "@/components/password-strength";
export default function Page() {
return <PasswordStrength />;
}A free React component in the Forms collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Password Strength source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| value | string | — |
| defaultValue | string | "" |
| onValueChange | (value: string, analysis: Analysis) => void | — |
| label | string | "Password" |
| minLength | number | 12 |
| name | string | — |
| autoComplete | string | "new-password" |
| className | string | — |