@advanced-rest-client/paper-masked-input
v3.0.0-preview.2
Published
Material design password field
Downloads
9
Readme
<paper-masked-input>
<paper-masked-input>
is a single-line password field with Material Design styling and option to unmask the value.
<paper-masked-input label="Your password"></paper-masked-input>
API components
This components is a part of API components ecosystem
Usage
Installation
npm install --save @advanced-rest-client/paper-masked-input
In an html file
<html>
<head>
<script type="module">
import '@advanced-rest-client/paper-masked-input/paper-masked-input.js';
</script>
</head>
<body>
<paper-masked-input></paper-masked-input>
</body>
</html>
In a Polymer 3 element
import {PolymerElement, html} from '@polymer/polymer';
import '@advanced-rest-client/paper-masked-input/paper-masked-input.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<paper-masked-input></paper-masked-input>
`;
}
}
customElements.define('sample-element', SampleElement);
Installation
git clone https://github.com/advanced-rest-client/paper-masked-input
cd api-url-editor
npm install
npm install -g polymer-cli
Running the demo locally
polymer serve --npm
open http://127.0.0.1:<port>/demo/
Running the tests
polymer test --npm