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
以上是npm 切換美化 |我的第一個 npm 包的詳細內容。更多資訊請關注PHP中文網其他相關文章!