1.1.2 • Published 4 years ago
mode-switcher v1.1.2
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:
import { Switcher } from "mode-switcher"
Usage:
function App(){
return(
<>
<div className="App-container">
<h1> My Content here <h1>
<Switcher emojiLight="🌞" emojiDark="🌚"/>
<p> Hi from content </p>
</div>
</>
);
};