Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

corespring-correct-answer-toggle

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corespring-correct-answer-toggle

A react based toggle component

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

corespring-correct-answer-toggle

Build Status

A toggle with an icon and a label.

Preview

Usage

You need to include this in another library that builds react aka (babel).

Webpack

We assume that you have a loader that will load in .less. In the demo we use style-loader!css-loader!less-loader.

Install

npm install 

Test

npm test

Demo

cd demo 
../node_modules/.bin/webpack-dev-server --hot --inline
# go to http://localhost:8080

Usage


import Toggle from 'corespring-correct-answer-toggle'; 

function onToggle(toggled){
  console.log('on toggle: ', toggled);
}

const MyComp = (props) => {
  return <div>
    <Toggle 
      show={props.show} 
      onToggle={onToggle} 
      initialValue={false}/>
  </div>;
}

Release

gulp release
git checkout master
npm publish

Keywords

FAQs

Package last updated on 07 Dec 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc