Fylgja CSS
<script src="//unpkg.com/@fylgja/alpinejs-dialog" defer></script>
<script src="//unpkg.com/alpinejs" defer></script>
 
<div x-data="{ open: false }">
    <button @click="open = true">Expand</button>
 
    <dialog x-show="open" x-htmldialog="open = false">
      Content...
    </dialog>
</div>
Fylgja Dialog Modal

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Also checkout the Fylgja Base, that powers all the styling for the dialog element

Fylgja Dialog Modal

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Magnam, debitis dolor unde ab veritatis repellat hic!
Cum hic corporis earum nemo facilis obcaecati soluta sapiente quia iure.
Sequi, molestiae eos!


Also checkout the Fylgja Base, that powers all the styling for the dialog element

Meet x-htmldialog, an Alpine.js plugin that makes working with native HTML <dialog> elements a breeze. Attach the x-htmldialog directive to your x-show elements to unlock native modal functionality, with default support for escape key and backdrop closing.

See the full details on fylgja.dev.

More Dialog examples are found on the UI Components on Fylgja.dev