1.0.10 • Published 5 months ago

react-password-check v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

react-password-check

A simple password strength indicator component for react.

Installation

npm install react-password-check

Usage

import { useState } from "react";

import { images } from "./assets";
import PasswordCheck from "./components/PasswordCheck";

export default function App() {
  const [password, setPassword] = useState<string>("");

  return (
    <div
      style={{
        height: "100vh",
        display: "flex",
        justifyContent: "center",
        alignItems: "center",
      }}
    >
      <div
        style={{
          height: 40,
          width: 300,
          position: "relative",
        }}
      >
        <input
          style={{
            width: "100%",
            height: 40,
            boxSizing: "border-box",
          }}
          value={password}
          onChange={(e) => setPassword(e.target.value)}
        />
        <PasswordCheck
          value={password}
          name="password"
          position="top"
          images={{
            right: images.checkMark,
            wrong: images.close,
          }}
        />
      </div>
    </div>
  );
}

License

MIT


1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago