Skip to content

V1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@oreyes1991 oreyes1991 released this 10 Nov 04:19
· 1 commit to gh-pages since this 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