Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<input-clear>

Very simple web component which is a text input allowing you to clear contents with inline x using VanillaJS.

Demo

Check out the live demo

Install

Install the component using Bower:

$ bower install input-clear --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill:

    <script src="bower_components/platform/platform.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/input-clear/src/input-clear.html">
  3. Start using it!

    <input-clear></input-clear>

Options

Attribute Options Default Description
placeholder string bar Standard input text placeholder.

Development

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

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

For detailed changelog, check Releases.

License

MIT License

About

Web component for the input element with built in x icon for clearing content.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors