DEV Community

Albin Sabu
Albin Sabu

Posted on

1

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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay