PasswordChecklist

Requirements that tick themselves off as the password meets them. Each circle fills and draws its check, and the heading counts how many are left. Auth.

Open playground

4 to go

  • At least 8 characters, not met
  • An upper and a lower case letter, not met
  • A number, not met
  • A symbol, like ! or &, not met

About

PasswordChecklist is a React component in the Auth category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { PasswordChecklist } from "@ashutoshswamy/smoui" and set value, minLength.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { PasswordChecklist } from "@ashutoshswamy/smoui";

<PasswordChecklist value="hunter2" minLength={10} />

Props 2

value

The password being typed.

string
minLength

Fewest characters.

numberdefault 8