Very simple web component which is a text input allowing you to clear contents with inline x using VanillaJS.
Install the component using Bower:
$ bower install input-clear --saveOr download as ZIP.
-
Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/input-clear/src/input-clear.html">
-
Start using it!
<input-clear></input-clear>
| Attribute | Options | Default | Description |
|---|---|---|---|
placeholder |
string | bar |
Standard input text placeholder. |
In order to run it locally you'll need to fetch some dependencies and a basic server setup.
-
Install Bower:
$ [sudo] npm install -g bower
-
Install local dependencies:
$ bower install
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
For detailed changelog, check Releases.