1.0.5 ⢠Published 6 months ago
react-modern-button v1.0.5
React Modern Button
A simple, reusable, and customizable button component for React and Next.js. Designed to be responsive, lightweight, and developer-friendly, while allowing users to override styles to meet their specific needs.
š Features
- š Customizable Styles: Use
className
orstyle
props to tailor the design. - š± Responsive: Default styles are designed to look great on all devices.
- ā” Optimized for React & Next.js: Seamlessly integrates with modern frameworks.
- šļø Lightweight: Minimal bundle size with tree-shaking support.
- š§ Easy to Use: Intuitive props and flexible APIs for fast implementation.
š¦ Installation
Install the package via npm or yarn:
# Using npm
npm install react-modern-button
# Using yarn
yarn add react-modern-button
š„ Quick Start
Here's how to get started with react-modern-button:
import React from "react";
import { Button } from "react-modern-button";
import "react-modern-button/dist/index.css"; // Import default styles
const App = () => (
<div>
<h1>React Modern Button</h1>
<Button
label="Click Me"
color="primary"
onClick={() => alert("Button clicked!")}
/>
</div>
);
export default App;
## š Documentation
Explore the documentation:
- [Installation Guide](https://github.com/subodhsingh001/react-modern-button/blob/main/docs/installation.md)
- [Quick Start](https://github.com/subodhsingh001/react-modern-button/blob/main/docs/quick-start.md)
- [Customization](https://github.com/subodhsingh001/react-modern-button/blob/main/docs/customization.md)
- [API Reference](https://github.com/subodhsingh001/react-modern-button/blob/main/docs/dynamic.md)