Mode switch
A reusable toggle UI component for React to switch between modes.
Installation
Pre-requisites
- yarn or npm.
- A React sample project.
Get started
Using yarn
:
yarn add mode-switcher
Using npm
:
npm i mode-switcher
Example 👁
ES6 import:
Usage:
{ return <> <div className="App-container"> <h1> My Content here <h1> <Switcher emojiLight="🌞" emojiDark="🌚"/> <p> Hi from content </p> </div> </> ;};