V1.0
Pre-release
Pre-release
Add Inputs
pretty input
- Attributes
placeholder = "placeholder" // placeholder for the input
password = Define input type as passworrd, if the value is "show" display a toggler
loading = true || false // show loading animation
- Examples
Default input
<pretty-input placeholder="Default input"></pretty-button>
Password input with show option
<pretty-input placeholder="Password with show option" password show></pretty-input>
password input without show option
<pretty-input placeholder="Password with show option" password show></pretty-input>
loading animation
<pretty-input placeholder="Loading input" loading></pretty-input>
if you want to get the value with javascript
document.querySelector('pretty-input#my-element').value