Download the PHP package mrjokermr/dynamic-modal-wrapper without Composer
On this page you can find all versions of the php package mrjokermr/dynamic-modal-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrjokermr/dynamic-modal-wrapper
More information about mrjokermr/dynamic-modal-wrapper
Files in mrjokermr/dynamic-modal-wrapper
Package dynamic-modal-wrapper
Short Description Scaffholding for laravel & livewire modals
License MIT
Informations about the package dynamic-modal-wrapper
Dynamic modal wrapper
A lightweight package that brings simple, dynamic modal handling to Livewire 3. It provides a clean way to open and close modals from anywhere in your application without boilerplate logic, while keeping configuration and customization flexible.
With DynamicModalWrapper you can:
- Dispatch modals dynamically from your Livewire components.
- Pass parameters to modal components at runtime.
- Hook into modal lifecycle events (, , ).
- Customize modal appearance (background colors, padding, z-index, press escape-to-close) via a publishable config.
Installation
Install via composer:
Place the Livewire component right after the opening body tag in your layout (for example in )
Usage/Examples
Passing data to the mount function:
You might want to set the name since this name will be sent with the php event for implementing custom logic before the livewire component will be broken down. example
You might also want to set the content background color to another color then the set config value. example
The package dispatches a closing event once the has been triggered, before completion:
Available events:
Config
default config:
All versions of dynamic-modal-wrapper with dependencies
laravel/framework Version ^10.0 || ^11.0 || ^12.0
livewire/livewire Version ^3.0