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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more