PHPackages                             marcorombach/livewire-confirm-modal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. marcorombach/livewire-confirm-modal

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

marcorombach/livewire-confirm-modal
===================================

Like the wire confirm directive but displayed as modal on your page.

0.2.6(5mo ago)35711[1 PRs](https://github.com/marcorombach/livewire-confirm-modal/pulls)MITBladePHP ^8.2CI passing

Since Aug 15Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/marcorombach/livewire-confirm-modal)[ Packagist](https://packagist.org/packages/marcorombach/livewire-confirm-modal)[ Docs](https://github.com/marcorombach/livewire-confirm-modal)[ RSS](/packages/marcorombach-livewire-confirm-modal/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (7)Dependencies (13)Versions (11)Used By (0)

Livewire Confirm-Modal
======================

[](#livewire-confirm-modal)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e6d1ca921fe4310dbdb33147bf335fc3e71f011bfdeea0f7e546d3abd0c9acb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6172636f726f6d626163682f6c697665776972652d636f6e6669726d2d6d6f64616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marcorombach/livewire-confirm-modal)[![Total Downloads](https://camo.githubusercontent.com/06be55be67bfceecbedc9a53dcfe498bb0520175a46fcd3b1bafcf1b8da56f63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6172636f726f6d626163682f6c697665776972652d636f6e6669726d2d6d6f64616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marcorombach/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](https://devdojo.com/pines).

[![alt text](https://github.com/marcorombach/livewire-confirm-modal/raw/main/demo.png?raw=true)](https://github.com/marcorombach/livewire-confirm-modal/blob/main/demo.png?raw=true)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require marcorombach/livewire-confirm-modal
```

You need to add the following to your `tailwind.config.js`

```
"./vendor/marcorombach/livewire-confirm-modal/resources/views/components/*.php"
```

It should look something like this:

```
content: [
    "./resources/**/*.blade.php",
    "./resources/**/*.js",
    ...
    "./vendor/marcorombach/livewire-confirm-modal/resources/views/components/*.php",
]
```

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

```
php artisan vendor:publish --tag="livewire-confirm-modal-views"
```

You should be careful changing the view, especially when touching alpine directives.

Usage
-----

[](#usage)

```

    Test

```

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
-------

[](#credits)

- [Marco Rombach](https://github.com/marcorombach)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance74

Regular maintenance activity

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~85 days

Recently: every ~127 days

Total

7

Last Release

178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a524ddbf14cf88f0025961472396118baf4a27373beb6ec35bb1bf3aef55a884?d=identicon)[marcorombach](/maintainers/marcorombach)

---

Top Contributors

[![marcorombach-sauter](https://avatars.githubusercontent.com/u/188306274?v=4)](https://github.com/marcorombach-sauter "marcorombach-sauter (39 commits)")[![marcorombach](https://avatars.githubusercontent.com/u/36333308?v=4)](https://github.com/marcorombach "marcorombach (25 commits)")

---

Tags

laravellivewiretailwindconfirmwiremarcorombachlivewire-confirm-modal

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/marcorombach-livewire-confirm-modal/health.svg)

```
[![Health](https://phpackages.com/badges/marcorombach-livewire-confirm-modal/health.svg)](https://phpackages.com/packages/marcorombach-livewire-confirm-modal)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4911.6M11](/packages/leandrocfe-filament-apex-charts)[filament/support

Core helper methods and foundation code for all Filament packages.

2331.0M245](/packages/filament-support)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
