Skip to content

toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.

Notifications You must be signed in to change notification settings

fxedel/toggle-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org Published on Vaadin  Directory Stars on vaadin.com/directory

toggle-icon

What does this element?

toggle-icon is a custom element created with Polymer. It provides an extremly powerful and customizable switch that looks like a paper-icon-button. Use toggleIcon.checked to get the toggle-icon's status in JavaScript. For more information about the usage, see the component page.

Here's a gif that shows five icon-toggle elements which are toggled by setting the checked property programmatically:

animation

Get the code

If you have npm installed, run:

npm install polymer-toggle-icon

Else, you can clone this repository.

Bugs / Feature requests

Feel free to open an issue if you notice something that can be improved.

Contributing to the code

  1. Fork the repository.
  2. Commit your changes to your fork.
  3. Create a pull request.

I really appreciate any contribution :)

License

The project is distributed under the MIT License, so you can use or modify the code as you like, you only need to name the author (e. g. by adding a link to the GitHub repository).

About

toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published