Preet Suthar

Password Strength Meter

Forms 74

About

Visual indicator for password strength with validation criteria.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Password Strength Meter to your project and fits it to your theme.

Code

How Password Strength Meter is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { PasswordStrengthMeter } from "@/components/ui/password-strength-meter"
import {useState} from 'react';

export const Demo = () => {
  const [password, setPassword] = useState("");
 
  return (
    <div className="flex flex-col gap-4">
      <input
        type="password"
        value={password}
        onChange={(e) => setPassword(e.target.value)}
        className="w-full px-3 py-2 border rounded-md focus-visible:ring-0 focus-within:ring-0 focus:outline-white/10"
        placeholder="Enter password"
      />
      <PasswordStrengthMeter password={password} />
    </div>
  );
};

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.6K
  • Magic Text

    Magic Text

    860
  • Toolbar

    Toolbar

    836
  • Hero 2

    Hero 2

    825
  • Typewriter Text

    Typewriter Text

    786
  • Full Screen Signup

    Full Screen Signup

    753
  • AI Chat Input

    AI Chat Input

    750

More in Forms

View all
  • Premium Auth

    Premium Auth

    525
  • Contact Card

    Contact Card

    1K
  • Card Studio

    Card Studio

    41
  • Login 2

    Login 2

    7
  • Form

    Form

    16
  • Book A Demo 1

    Book A Demo 1

    74
  • HeroUI Field Error

    HeroUI Field Error

    10
  • Book A Demo 3

    Book A Demo 3

    89