1.0.9 • Published 4 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-switch
Import/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)} />