A port of Flexilla Modal for Alpine.js
Include the following <script>
tag in the <head>
of your document, just before Alpine.
npm install @flexilla/alpine-modal
Add the x-modal
directive to your project by importing the package before starting Alpine.
import Alpine from 'alpinejs';
import PluginModal from '@flexilla/alpine-modal';
Alpine.plugin(PluginModal);
Alpine.start();
Copyright (c) 2025 Johnkat MJ and contributors.
Licensed under the MIT license, see LICENSE for details.