Skip to content

A simple, reusable, and customizable Button component created to demonstrate publishing to the GitHub Registry as an NPM package.

License

Notifications You must be signed in to change notification settings

arin-paliwal/CustomLibraryButton

Repository files navigation

πŸš€ Custom React Button

A reusable and customizable Button component created as a learning project to publish a package to the GitHub NPM Registry.

πŸ“¦ Features

  • πŸ”§ Customizable: Tailor styles and functionality effortlessly.
  • ⚑ Lightweight: Minimal and optimized for performance.
  • πŸ“œ Educational: Demonstrates publishing to the GitHub Registry.

πŸ› οΈ Installation

Install the package from the GitHub NPM Registry:

npm install @yourusername/your-button-package --registry=https://npm.pkg.github.com
πŸ“‹ Usage
Import the Button component and use it in your React application:

import Button from '@yourusername/your-button-package';

const App = () => (
  <Button label="Click Me!" onClick={() => alert('Button clicked')} />
);

export default App;
🌟 Contributing
Feel free to submit issues or pull requests to improve the package!

πŸ“„ License
This project is licensed under the MIT License.

About

A simple, reusable, and customizable Button component created to demonstrate publishing to the GitHub Registry as an NPM package.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published