https://github.com/fxedel/toggle-icon
toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.
https://github.com/fxedel/toggle-icon
custom-elements hacktoberfest paper-elements polymer polymer2 ui web-components webcomponents
Last synced: 3 months ago
JSON representation
toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.
- Host: GitHub
- URL: https://github.com/fxedel/toggle-icon
- Owner: fxedel
- Created: 2015-09-09T11:42:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T21:18:25.000Z (over 7 years ago)
- Last Synced: 2026-01-24T06:05:51.145Z (4 months ago)
- Topics: custom-elements, hacktoberfest, paper-elements, polymer, polymer2, ui, web-components, webcomponents
- Language: JavaScript
- Homepage: http://fxedel.github.io/toggle-icon/
- Size: 4.68 MB
- Stars: 20
- Watchers: 3
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.webcomponents.org/element/fxedel/toggle-icon)
[](https://vaadin.com/directory/component/fxedeltoggle-icon)
[](https://vaadin.com/directory/component/fxedeltoggle-icon)
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](http://fxedel.github.io/toggle-icon/).
Here's a gif that shows five icon-toggle elements which are toggled by setting the `checked` property programmatically:

## 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).