Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aaronshaf/shaf-toggle

Elegant, accessible toggle element. Upgrades existing <input type="checkbox" />
https://github.com/aaronshaf/shaf-toggle

custom-elements toggle

Last synced: 22 days ago
JSON representation

Elegant, accessible toggle element. Upgrades existing <input type="checkbox" />

Awesome Lists containing this project

README

        

## It's easy peasy

Check out the [demo](https://aaronshaf.github.io/shaf-toggle/). Works in IE11, Edge, Chrome, Firefox, and Safari.

```html

```

```html

```

### Usage

```html

```

### Benefits

Because this wraps an existing ``:

* It is form-friendly.
* It doesn't mess with your event handlers.
* Your checkbox still works if JavaScript is turned off or fails to load.

## Contributors

* [aaronshaf](https://github.com/aaronshaf)
* [ahstro](https://github.com/ahstro)
* This project inherits work from [react-toggle](https://github.com/aaronshaf/react-toggle).

## See also

* [shaf-button](https://github.com/aaronshaf/shaf-button)
* [shaf-chart](https://github.com/aaronshaf/shaf-chart)
* [shaf-star-rating](https://github.com/aaronshaf/shaf-star-rating)
* [shaf-unified-diff](https://github.com/aaronshaf/shaf-unified-diff)
* [shaf-timeago](https://github.com/aaronshaf/shaf-timeago)