A modern React UI component library with a focus on simplicity and usability.
npm install @pbn/react-ui-library
First, import the component you want to use:
import { Button } from 'pbn-react-ui-library';
// Primary Button
<Button
label="Primary Button"
variant="primary"
onClick={() => console.log('Clicked!')}
/>
// Secondary Button
<Button
label="Secondary Button"
variant="secondary"
onClick={() => console.log('Clicked!')}
/>
A versatile button component with different variants and cursor styling.
Prop | Type | Default | Description |
---|---|---|---|
label | string | required | The text to display on the button |
variant | 'primary' | 'secondary' | 'primary' | The style variant of the button |
onClick | function | undefined | Click handler for the button |
- Hover effect with opacity change
- Cursor changes to pointer on hover
- Smooth transitions
- Responsive padding and font size
- No outline on focus for clean appearance
To run this project locally:
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## License
MIT © [PBN]