Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tildah/native-password-input
- Owner: tildah
- Created: 2019-01-25T09:01:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T20:06:05.000Z (over 5 years ago)
- Last Synced: 2024-11-15T02:42:53.151Z (about 2 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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";
```