1.0.9 • Published 6 years ago
dark-switch v1.0.9
DarkSwitch button
custom style for checkbox to switch between Dark/Light theme
Installation
#NPM
npm i --save dark-switch
#YARN
yarn add dark-switchImport/use
//import
import DarkSwitch from "dark-switch" <DarkSwitch onChange={event=>handler(event)} />use custom switch class css
<DarkSwitch classSwitch={"myclass"} onChange={event=>handler(event)} />use custom handler class css
<DarkSwitch classHandle={"myclass"} onChange={event=>handler(event)} />