etiennebel/livewire-buttons

A Livewire Button component with Tailwind CSS

v1.0.4 2024-10-22 20:30 UTC

This package is auto-updated.

Last update: 2025-06-22 21:47:35 UTC


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 text
  • variant - primary, secondary, success, danger, warning
  • size - sm, md, lg
  • icon - Any Font Awesome icon class
  • loading - Boolean for loading state
  • disabled - Boolean for disabled state

Testing

composer test

Contributing

Please see CONTRIBUTING.md for details.

Pprocess of creating and publishing the package to Packagist

  1. Ensure your package has a composer.json file with the necessary metadata.
  2. Push your code to GitHub if you haven't already.
  3. Go to Packagist and log in.
  4. Click on "Submit" and provide the URL to your GitHub repository.
  5. Click "Check" and then "Submit".

License

The MIT License (MIT). Please see License File for more information.