A reusable and customizable Button component created as a learning project to publish a package to the GitHub NPM Registry.
- 🔧 Customizable: Tailor styles and functionality effortlessly.
- ⚡ Lightweight: Minimal and optimized for performance.
- 📜 Educational: Demonstrates publishing to the GitHub Registry.
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.