1.0.0 • Published 6 months ago

jeh-btn v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

📌 Advanced React Button Component

A customizable button component with multiple variants, sizes, and loading states.

🚀 Installation

npm install jeh-btn

🛠 Usage

import Button from "jeh-btn"; import { Plus } from "lucide-react";

function App() { return ( <Button label="Click Me" variant="primary" size="medium" onClick={() => alert('Button clicked!')} icon={} /> ); }

export default App;

🎨 Props

PropTypeDefaultDescription
labelstringRequiredButton text
onClick() => voidRequiredClick event handler
variant'primary' | 'secondary' | 'danger''primary'Button style variant
size'small' | 'medium' | 'large''medium'Button size
isLoadingbooleanfalseShow loading spinner
disabledbooleanfalseDisable the button
iconReactNodeundefinedIcon to display inside the button

🔗 License

MIT