lit-input
Web component to input text implemented with LitElement.
See Documentation, Demo.
Installation
npm install lit-input --save
Then import lit-input into your element:
;
or in an html file:
Usage
In your LitElement class:
static { return css` * { box-sizing: border-box; } :host { display: block; --lit-input-width: 350px; --lit-input-height: 30px; } `;}static { return {};} { super;} { return html` `;} { console;}
Variable value
from the event is a String
containing the text inside lit-input
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D