Read latest news and updates from our team
How to create a modal with Alpine.js
In this example, we have a <div> element with an x-data attribute that contains the modal's state (whether it is open or closed). The open property is initially set to false, which means the modal is closed by default.
3 months ago
Ready to get started with your project?
Create an account
And Book a FREE - 30 minute demo and disovery session