An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/fxedel/toggle-icon)
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/fxedeltoggle-icon)
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/fxedeltoggle-icon.svg)](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:

![animation](https://cloud.githubusercontent.com/assets/7782229/9784398/2e81c9f6-57ab-11e5-92ee-b13603c8c585.gif)

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