mode-switcher

1.1.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mode-switcher

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

96 kB

Total Files

12

Last publish

Collaborators

  • rodzy