Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 955 Bytes

File metadata and controls

29 lines (21 loc) · 955 Bytes

🚀 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.