Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

simple-toggle

0.1.0 • Public • Published

simple-toggle

Style checkboxes and radio inputs as iOS style on/off toggles. No JavaScript needed. HTML5 Standards Compliant

Example of toggle in use

Getting Started

To get started, follow these steps:

  1. Run npm install in your terminal
  2. Run gulp in your terminal
  3. The stylesheet can be found in the /dist directory

Usage

To see simple-toggle in usage, view the example

Use the following markup

<div class="simple-toggle">
  <input type="checkbox" name="name" id="twitter">
  <label for="twitter">Twitter</label><!-- this label will be hidden by the css -->
</div>
<label for="twitter">Twitter</label><!-- this label is visible, and is optional -->

Browser Support

Chrome, Safari, FireFox, IE >= 9 (other browsers to be confirmed)

Contributing

Contributions are always welcome. Please send a pull request or flag any issues.

License

ISC © Daniel Apt

install

npm i simple-toggle

Downloadsweekly downloads

1

version

0.1.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar