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.