Home > Article > Web Front-end > npm toggle-beautify | my first npm package
Toggle implementation made way more easier?

npm install toggle-beautify
import { ToggleBeauty } from "toggle-beautify";
import "toggle-beautify/dist/output.css";

pass a boolean value
isSelected
to it .so the component is toggled , and you can use this value for customize your project
<div>
<ToggleBeauty isSelected={isSelected} />
</div>
MIT
Author : Albin Sabu
The above is the detailed content of npm toggle-beautify | my first npm package. For more information, please follow other related articles on the PHP Chinese website!