1.1.2 • Published 4 years ago

mode-switcher v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Mode switch

CircleCI CircleCI GitHub package.json dependency version (dev dep on branch) npm

A reusable toggle UI component for React to switch between modes.

Installation

Pre-requisites

  1. yarn or npm.
  2. 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>
  </>
  );
};

License

MIT