UNPKG

@flexilla/alpine-modal

Version:

AlpineJS plugin for creating Modal, Dialog, alert dialog components

46 lines (26 loc) 720 B
<h1 align="center">Alpine Modal</h1> <p align="center"> A port of Flexilla Modal for <a href="https://alpinejs.dev">Alpine.js</a> </p> ## Installation ### CDN Include the following `<script>` tag in the `<head>` of your document, just before Alpine. ```html ``` ### NPM ```shell npm install @flexilla/alpine-modal ``` Add the `x-modal` directive to your project by importing the package **before** starting Alpine. ```js import Alpine from 'alpinejs'; import PluginModal from '@flexilla/alpine-modal'; Alpine.plugin(PluginModal); Alpine.start(); ``` ## Usage ```html ``` ## License Copyright (c) 2025 Johnkat MJ and contributors. Licensed under the MIT license, see [LICENSE](LICENSE) for details.