Componentform0.98 KB gzipZero dependencies
Password Strength
Segmented security verification meter with animated strength bars and criteria checklist.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add password-strengthOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { PasswordStrength } from "@/components/ui/password-strength"; <PasswordStrength value="TicketSecret!2026" />Source code
password-strength.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxpassword-strength.tsx98 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface PasswordStrengthProps extends React.HTMLAttributes<HTMLDivElement> { value?: string; className?: string; showCriteria?: boolean;} interface Criteria { label: string; met: boolean;} export function PasswordStrength({ value = "",Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { PasswordStrength } from "@/components/ui/password-strength"; <PasswordStrength />| Prop | Type | Description |
|---|---|---|
| value | string | Controlled value. (Default: "") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |
| showCriteria | boolean | Toggles show criteria. (Default: true) |