{% comment %} Dialog Component Usage: {% include 'payments/components/dialog.html' with dialog_id="myDialog" title="Dialog Title" %} Then in your Alpine.js component: x-data="{ showMyDialog: false }" @click="showMyDialog = true" And in the dialog content: