Home  >  Article  >  Web Front-end  >  npm toggle-beautify | my first npm package

npm toggle-beautify | my first npm package

DDD
DDDOriginal
2024-09-13 06:34:32938browse

Toggle implementation made way more easier?

Toggle-Beautify is a npm package for react toggle component

npm toggle-beautify | my first npm package

Intallation

npm install toggle-beautify

v1.0.7

usage

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

npm toggle-beautify | my first npm package

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>

Liscence

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn