Skip to content

tildah/native-password-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

native-password-input

a password input with visibility native web component.

Installation

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!

<!Doctype html>
<html>
    <head>
        ...
    </head>
    <body>
        <native-password-input 
            id="password" 
            placeholder="password..." 
            name="password"
            open
            >
        </native-password-input>
        <script src="./main.js" type="module"></script>
    </body>
</html>

main.js

import "/node_modules/native-password-input/index.js";

About

password input with visibility control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published