etiennebel / livewire-buttons
A Livewire Button component with Tailwind CSS
v1.0.4
2024-10-22 20:30 UTC
Requires
- php: ^8.0
- illuminate/support: ^10.0|^11.0
- livewire/livewire: ^3.0
README
A beautiful and customizable button component for Laravel Livewire applications.
Installation
You can install the package via composer:
composer require your-vendor/livewire-buttons
Usage
<livewire:button label="Click Me" variant="primary" size="md" icon="fas fa-save" />
Available Options
label
- Button textvariant
- primary, secondary, success, danger, warningsize
- sm, md, lgicon
- Any Font Awesome icon classloading
- Boolean for loading statedisabled
- Boolean for disabled state
Testing
composer test
Contributing
Please see CONTRIBUTING.md for details.
Pprocess of creating and publishing the package to Packagist
- Ensure your package has a
composer.json
file with the necessary metadata. - Push your code to GitHub if you haven't already.
- Go to Packagist and log in.
- Click on "Submit" and provide the URL to your GitHub repository.
- Click "Check" and then "Submit".
License
The MIT License (MIT). Please see License File for more information.