DEV Community

Albin Sabu
Albin Sabu

Posted on

npm toggle-beautify | my first npm package

Toggle implementation made way more easier🙌

Toggle-Beautify is a npm package for react toggle component

tg1

Intallation

npm install toggle-beautify
Enter fullscreen mode Exit fullscreen mode

v1.0.7

usage

 import { ToggleBeauty } from "toggle-beautify";
import "toggle-beautify/dist/output.css";
Enter fullscreen mode Exit fullscreen mode

tg2

Attributes

pass a boolean value

isSelected

to it .so the component is toggled , and you can use this value for customize your project

example

  <div>
      <ToggleBeauty isSelected={isSelected} />
    </div>
Enter fullscreen mode Exit fullscreen mode

Liscence

MIT

Author : Albin Sabu

Top comments (0)