Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tildah/native-password-input

password input with visibility control
https://github.com/tildah/native-password-input

Last synced: about 2 months ago
JSON representation

password input with visibility control

Awesome Lists containing this project

README

        

# native-password-input

a password input with visibility native web component.

## Installation

```bash
npm install native-password-input
```

## Attributes

| Attribute | Default | Details/Example |
|---------------|---------|---------|
| `name` | null | `password` |
| `placeholder` | null | `Enter a password` |
| `value` | null | `123456` |
| `open` | inexistant | Add this attribute to make password visible |
| `icon-color` | null | Color of icon |

## Usage

Using ES6 Modules is required!

```html


...





```

**main.js**
```javascript
import "/node_modules/native-password-input/index.js";
```