Socket
Socket
Sign inDemoInstall

material-toggle

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    material-toggle

Material Design toggle web component. No framework, vanilla js


Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Install size
3.62 MB
Created
Weekly downloads
 

Readme

Source

Material-toggle

An easy drop-in material design vanilla custom toggle element. HTML form ready, no framework dependencies, small footprint.

Spec Custom Elements V1 Build Status npm Known Vulnerabilities npm npm

Demo

Material toggle

Installation

npm install --save material-toggle

You need the webcomponents-lite polyfill.

Load the polyfill and the material-toggle.js in your html page or however you load you javascript dependencies:

<script src="webcomponents-lite.js"></script>
<script src="./node_modules/material-toggle/dist/material-toggle.js"></script>

Usage

Just drop an <material-toggle></material-toggle> element into you html <form> element and you are ready to go.

<label><material-toggle name="subscribe" id="subscribe"></material-toggle>Subscribe</label>
<label><material-toggle name="remind" id="remind" disabled></material-toggle>Remind</label>

Keywords

FAQs

Last updated on 14 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc