aladin-p13-react-library
v0.1.1
Published
A modern, customizable button component for React applications.
Downloads
7
Readme
My React Button Library
A modern, customizable button component for React applications.
Creation
Publishing
npm login
npm run build
npm publishInstallation
npm install aladin-p13-react-libraryUsage
import { Button } from 'aladin-p13-react-library';
function App() {
return (
<Button
variant="primary" // 'primary' | 'secondary' | 'outline'
size="medium" // 'small' | 'medium' | 'large'
onClick={() => console.log('Button clicked!')}
>
Click me!
</Button>
);
}Props
| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'primary' | 'secondary' | 'outline' | 'primary' | The style variant of the button | | size | 'small' | 'medium' | 'large' | 'medium' | The size of the button | | disabled | boolean | false | Whether the button is disabled | | onClick | function | - | Click handler | | className | string | - | Additional CSS classes |
License
MIT
