# password-material-ui

> A material-ui PASSWORD component which allows to see/hide the input text of the field

Latest version **1.0.2** (published 2018-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install password-material-ui
pnpm add password-material-ui
yarn add password-material-ui
bun add password-material-ui
```

## 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 | 1.0.2 |
| Published | 2018-10-14 |
| First published | 2018-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Iulian Radu |
| Maintainers | iulian-radu-at |
| Keywords | text, password, material-ui, password-material-ui, react, react-component, input, ui, material design |

## Links

- npm: https://www.npmjs.com/package/password-material-ui
- Repository: https://github.com/iulian-radu-at/password-material-ui
- Homepage: https://github.com/iulian-radu-at/password-material-ui#readme
- Issues: https://github.com/iulian-radu-at/password-material-ui/issues
- npm.io page: https://npm.io/package/password-material-ui

## Dependencies (6)

- [react](https://npm.io/package/react.md) 16.5.2
- [lodash](https://npm.io/package/lodash.md) 4.17.11
- [react-dom](https://npm.io/package/react-dom.md) 16.5.2
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) 3.2.0
- [react-fontawesome](https://npm.io/package/react-fontawesome.md) 1.6.1
- [@material-ui/icons](https://npm.io/package/@material-ui/icons.md) 3.0.1

## 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

- 1.0.2 (latest) — 2018-10-14

## README

# password-material-ui

A material-ui PASSWORD component which allows to see/hide the input text of the field

---

## Props

The component accepts the props defined bellow in the table.

### Props accepted by PasswordMaterialUi

| Name        | Type                    | Required | Default   | Description                                            |
| ----------- | ----------------------- | -------- | --------- | ------------------------------------------------------ |
| id          | string                  | no       | undefined | The id of the field                                    |
| label       | string                  | yes      | -         | The label of the field                                 |
| onChange    | (value: string) => void | yes      | -         | The callback function called when the value is changed |
| placeholder | string                  | no       | undefined | The placeholder of the field                           |
| type        | string                  | no       | text      | The type of the field; ex. text, password              |
| value       | string                  | no       | undefined | The value of the field                                 |

---

## Versions

| PasswordMaterialUi _uses_ | Material-ui | React  |
| ------------------------: | :---------: | :----: |
|                     1.0.x |    3.2.0    | 16.5.2 |

### About versioning schema used for PasswordMaterialUi

- Major - it will be increased if the major version of material-ui changes or there are breaking changes in the code of PasswordMaterialUi
- Minor - it will be increased if no major version of the dependat package changes, but there are changes of the minor or patch versions of it
- Patch - it will be increased if there are no changes of the dependat packages, but there are non breaking changes in the code of PasswordMaterialUi

---

## Example

The base component which allows to create read-only or creatable select components for selecting only one or more values:

```js
import * as React from "react";
import PasswordMaterialUi from "password-material-ui";

class App extends React.Component {
  render() {
    return (
      <div className="App">
        <PasswordMaterialUi
          type="text"
          label="Account"
          placeholder="contains this text"
          value={value}
          onChange={onChange}
        />
      </div>
    );
  }

  handleChange = (event: any) => {
    console.log(event);
  };
}

export default App;
```

```js
import * as React from "react";
import PasswordMaterialUi from "password-material-ui";

class App extends React.Component {
  render() {
    return (
      <div className="App">
        <PasswordMaterialUi
          type="password"
          label="Password"
          onChange={onChange}
        />
      </div>
    );
  }

  handleChange = (event: any) => {
    console.log(event);
  };
}

export default App;
```

---

## Similar npm packages

- [material-ui-password-field](https://www.npmjs.com/package/material-ui-password-field)

---

## Changelog

### 1.0.2

- password-material-ui is made publicly available

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