Download the PHP package pristavu/momentum-modal without Composer
On this page you can find all versions of the php package pristavu/momentum-modal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pristavu/momentum-modal
More information about pristavu/momentum-modal
Files in pristavu/momentum-modal
Package momentum-modal
Short Description Build dynamic modal dialogs for your Inertia-powered Laravel apps
License MIT
Informations about the package momentum-modal
Momentum Modal
Momentum Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.
Define modal routes on the backend and dynamically render them when you visit a dialog route.
Check out the demo app demonstrating the Modal package in action.
- Installation
- Laravel
- Vue 3
- React
- Setup
- Vite
- Laravel Mix
- Usage
- Advanced Inertia
- Momentum
Installation
Laravel
Install the package into your Laravel app.
Vue 3
Install the frontend package.
Warning The package utilizes
axios
under the hood. If your app is already usingaxios
as a dependency, make sure to lock it to the same version Inertia uses.
React
Install the frontend package.
Warning The package utilizes
axios
under the hood. If your app is already usingaxios
as a dependency, make sure to lock it to the same version Inertia uses.
Setup
Modal is a headless component, meaning you have full control over its look, whether it's a modal dialog or a slide-over panel. You are free to use any 3rd-party solutions to power your modals, such as Headless UI.
Put the Modal
component somewhere within the layout.
Vue 3 setup
React setup
Set up a modal
plugin with the same component resolver you use to render Inertia pages.
Vite
Laravel Mix
Usage
Modals have their own routes, letting you access them even via direct URLs. Define routes for your modal pages.
Render a modal from a controller. Specify the base
route to render the background when the modal is accessed directly.
Find the example Vue 3 implementation here.
Advanced Inertia
Take your Inertia.js skills to the next level with my book Advanced Inertia. Learn advanced concepts and make apps with Laravel and Inertia.js a breeze to build and maintain.
Momentum
Momentum is a set of packages designed to improve your experience building Inertia-powered apps.
- Modal — Build dynamic modal dialogs for Inertia apps
- Preflight — Realtime backend-driven validation for Inertia apps
- Paginator — Headless wrapper around Laravel Pagination
- Trail — Frontend package to use Laravel routes with Inertia
- Lock — Frontend package to use Laravel permissions with Inertia
- Layout — Persistent layouts for Vue 3 apps
- Vite Plugin Watch — Vite plugin to run shell commands on file changes
Credits
- Boris Lepikhin
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of momentum-modal with dependencies
illuminate/support Version ^8.24|^9.0|^10.0|^11.0
inertiajs/inertia-laravel Version ^0.6|^1.0|^2.0