Back to blocks
BlockAuthenticationFree

Password Strength Meter React component

A create-password screen that explains strength instead of just scoring it: entropy in bits and an estimated time to crack, a five-step meter, live checks for length, variety, runs, keyboard patterns, your name or email and leaked passwords, a tip for the first problem, a passphrase generator, copy and show, and saving only once it's strong.

About the Password Strength Meter component

Password Strength Meter is a create-password screen that tells people why a password is weak, not just that it is. It shows how long the password would take to crack and checks it against the mistakes attackers try first.

As someone types, the meter fills and changes color, the checklist ticks off length, variety, runs like 1234, keyboard rows like qwerty, their own name or email and passwords known from leaks, and one tip explains what to fix next. Suggest one fills in a strong, memorable passphrase.

When to use it

Use it on sign-up, set-password, reset-password and change-password screens.

For a compact password field inside a longer form, use the password input element instead.

Installation

Add the Password Strength Meter component to your project with the shadcn CLI. It lands in components/password-strength-meter.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/password-strength-meter

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

Related components

Reset Password Card
Free
OTP / Verification Code Block
Free
Verify Email Card
Free
Split Sign In with Testimonial
Free
Lead Profile Panel
Free
Deals Pipeline Board
Free