# react-password-with-generator

> An password input with a configurable generator.

Latest version **2.0.0** (published 2017-11-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-password-with-generator
pnpm add react-password-with-generator
yarn add react-password-with-generator
bun add react-password-with-generator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-11-05 |
| First published | 2017-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Luís Nóbrega |
| Maintainers | luis.nobrega |
| Keywords | password, password-generator, component, react, react-component |

## Links

- npm: https://www.npmjs.com/package/react-password-with-generator
- Repository: https://github.com/lfbn/react-password-with-generator
- Issues: https://github.com/lfbn/react-password-with-generator/issues
- npm.io page: https://npm.io/package/react-password-with-generator

## Dependencies (2)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [password-generator](https://npm.io/package/password-generator.md) ^2.2.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2017-11-05
- 1.0.6 — 2017-10-27
- 1.0.5 — 2017-10-25
- 1.0.4 — 2017-10-25
- 1.0.3 — 2017-10-22
- 1.0.2 — 2017-10-22
- 1.0.1 — 2017-10-22
- 0.0.1 — 2017-10-19

## README

An password input with a configurable generator.

# Props

The component takes the following props.

| Prop         | Type       | Description  |
|--------------|------------|--------------|
| `onFocus`    | _function_ | Callback function to invoke when the input password field has focus. The function signature should be the following: `function(e) { }`. |
| `onBlur`     | _function_ | Callback function to invoke when field loses focus. The function signature should be the following: `function(e) { }`. |
| `className`  | _string_   | Class name to be added to the wrapper div |
| `messages`   | _object_   | You could define the string messages to be shown for `messages={{inputPlaceholder: 'Define the password', generateButtonLabel: 'Generate one!'}}` |
| `passwordCustomLength` | _integer_ | The length of the password to be generated |
| `passwordNotMemorable` | _boolean_ | If the password generated should be memorable. Default is false. |
| `passwordShouldMatchPattern` | _string_ | The pattern to match for the generated password |
| `passwordPrefix` | _string_ | Customize the generated password prefix |

# Installation

```bash
npm install react-password-with-generator
```

# Demo

You have a demo [here](https://lfbn.github.io/react-password-with-generator/).

# Usage

If you want the default styling include the components [CSS](./style.css) with

```javascript
import "react-password-with-generator/style.css" // for ES6 modules
// or
require("react-password-with-generator/style.css") // for CommonJS
````

# Development

```javascript
npm install
npm run dev
````

# Build

```javascript
npm run build
```

# License

MIT

---
_Source: https://npm.io/package/react-password-with-generator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
