api-console-assets
Version:
This repo only exists to publish api console components to npm
22 lines (13 loc) • 1.01 kB
Markdown
[](https://travis-ci.org/advanced-rest-client/paper-masked-input)
Material design: [Text fields](https://www.google.com/design/spec/components/text-fields.html)
`<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>
It may include an optional error message.
<paper-masked-input label="Your password" error-message="Invalid password!"></paper-masked-input>
The password input will rener two additional icon buttons: clear and visibility toggle.
When the user toggle visibility it will change to regular text field and back.
To focus a paper-masked-input, you can call the native `focus()` method as long as the paper input has a tab index.
See `Polymer.PaperInputContainer` for a list of custom properties used to style this element.