Download the PHP package marcorombach/livewire-confirm-modal without Composer
On this page you can find all versions of the php package marcorombach/livewire-confirm-modal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marcorombach/livewire-confirm-modal
More information about marcorombach/livewire-confirm-modal
Files in marcorombach/livewire-confirm-modal
Package livewire-confirm-modal
Short Description Like the wire confirm directive but displayed as modal on your page.
License MIT
Homepage https://github.com/marcorombach/livewire-confirm-modal
Informations about the package livewire-confirm-modal
Livewire Confirm-Modal
This is a simple package aiming to provide a Livewire directive like wire:confirm
but without using the default javascript confirm()
function.
This is useful if you need the same style for the confirm box across different browsers.
It's also possible to apply your own style by changing the view.
By default this package uses TailwindCSS to style the modal. The look of the modal was inspired by the components of Pines UI.
Installation
You can install the package via composer:
You need to add the following to your
It should look something like this:
To include the necessary scripts and the modal itself, make sure this is present in all your views that should use wire:confirm-modal
Optionally, you can publish the view using
You should be careful changing the view, especially when touching alpine directives.
Usage
Replace title
and description
with what you want the confirm modal to display.
Now a modal is shown everytime the button is clicked. It will prevent wire:click
from executing until the continue button in the modal is clicked.
Credits
- Marco Rombach
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of livewire-confirm-modal with dependencies
illuminate/contracts Version ^10.0||^11.0
livewire/livewire Version ^3.5
spatie/laravel-package-tools Version ^1.16