justinbyrne/a-bunch-of-livewire-components

As the title suggests it, this is a bunch of Livewire components that can be reused in any Laravel app.

dev-main 2022-10-31 20:31 UTC

This package is auto-updated.

Last update: 2024-10-29 06:31:14 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

As the title suggests it, this is a bunch of Livewire components that can be reused in any Laravel app.

Requirements

  • Laravel 9.x
  • Tailwind CSS
  • Tailwind CSS Forms plugin
  • Alpine.js

Installation

You can install the package via composer:

composer require justinbyrne/a-bunch-of-livewire-components

You can publish the config file with:

php artisan vendor:publish --tag="a-bunch-of-livewire-components-config"

The tailwind config will either need the vendor dir config file added of the published one.

// tailwind.config.js
module.exports = {
  content: {
    "./vendor/justinbyrne/a-bunch-of-livewire-components/config/a-bunch-of-livewire-components.php",
    // ...
  },
}

Components

Autocomplete

@livewire('abolc-autocomplete', ['model' => 'App\Models\User'])