Home > Web Front-end > JS Tutorial > body text

npm toggle-beautify | my first npm package

DDD
Release: 2024-09-13 06:34:32
Original
845 people have browsed it

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
Copy after login

v1.0.7

usage

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

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>
Copy after login

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!

source:dev.to
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!