1.0.3 • Published 8 months ago

mui-customisable-password-component v1.0.3

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

MUI Customisable Password Component

A Customisable Material-UI component that provides real-time password strength evaluation and password rule compliance visualisation.

Developed by Piraveenan Kirupakaran

Features

  • Real-time password strength updates
  • Password strength bar visualisation
  • Interactive checkboxes for rule compliance
  • Customisable styling and rule definitions
  • TypeScript support for enhanced type safety

Table of Contents

Installation

Install the library using your package manager of choice:

npm i mui-customisable-password-component

or

yarn add mui-customisable-password-component

Usage

Once installed, import the MUICustomisablePasswordComponent in your React component:

  import React from 'react';
  import MUICustomisablePasswordComponent from 'react-mui-password-strength';

  function App() {
    return (
      <div>
        <h1>Password Strength Indicator</h1>
        <MUICustomisablePasswordComponent />
      </div>
    );
  }

export default App;

Customise the component's behavior and appearance by passing props as needed. For a full list of available props and their descriptions, refer to the Props section in the README.

Props

PropTypeDescription
rulesobjectCustom password rules.
valuestringThe password string to evaluate.
minLengthnumberMinimum password length.
maxLengthnumberMaximum password length.
onChangefunctionCallback function triggered on value change.
specialCharactersRegexRegExpRegular expression for special characters.
passwordStrengthBarbooleanEnable/disable password strength bar.
successColourProgressBarstringColor for successful progress bar.
warningColourProgressBarstringColor for warning progress bar.

License

This project is licensed under the MIT License - see the LICENSE file for details.