Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Modal Laravel Package

nawasara/modal

Reusable Blade + Livewire modal components for Laravel. Includes a Blade x-nawasara-modal::modal and a universal Livewire modal you place once in your layout, then open from anywhere with openModal() to load any Livewire component with params.

View on GitHub
Deep Wiki
Context7

Nawasara Modal

Reusable Blade and Livewire modal component for Laravel applications.

Installation

composer require nawasara/modal

Auto-discovered. Optionally publish the views to override the defaults:

php artisan vendor:publish --provider="Nawasara\Modal\ModalServiceProvider"

Usage

Blade modal

<x-nawasara-modal::modal id="my-modal" title="Modal Title">
    Modal content goes here.

    <x-slot:footer>
        <button @click="open = false">Close</button>
    </x-slot:footer>
</x-nawasara-modal::modal>

Open the modal from anywhere on the page:

<button @click="openModal('my-modal')">Open modal</button>

Livewire modal (universal)

Drop the universal modal once in your layout:

<livewire:nawasara-modal.livewire-modal />

Then open any Livewire component inside it:

openModal({
    id: 'modal-livewire',
    title: 'Title',
    component: 'your.livewire.component',
    params: { /* ... */ }
});

Author

Pringgo J. Saputro <[email protected]>

License

MIT

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle