corespring-correct-answer-toggle
A toggle with an icon and a label.
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
; { console;} const MyComp = { return <div> <Toggle show=propsshow onToggle=onToggle initialValue=false/> </div>;}
Release
gulp releasegit checkout masternpm publish