@ahmetekmell/react-awesome-button
v1.0.4
Published
A simple reusable React button component
Readme
react-awesome-button
A simple, customizable React button component.
Installation
npm install @ahmetekmell/react-awesome-buttonUsage
import { Button } from '@ahmetekmell/react-awesome-button'
function App() {
return (
<Button
label="Click me"
variant="primary"
size="medium"
onClick={() => console.log('clicked!')}
/>
)
}Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| label | string | — | Button text |
| variant | primary | secondary | danger | primary | Visual style |
| size | small | medium | large | medium | Button size |
| onClick | () => void | — | Click handler |
| disabled | boolean | false | Disables the button |
