{{ title | safe }}
{{ description | safe }}
{# Renders a dialog component with optional trigger, header, body, and footer. @param id {string} - Unique identifier for the dialog component. @param trigger {string} [optional] - Text or HTML for the button that triggers the dialog. @param title {string} [optional] - Title text displayed in the dialog header. @param description {string} [optional] - Description text displayed below the title. @param footer {string} [optional] - HTML content for the dialog footer. @param main_attrs {object} [optional] - Additional HTML attributes for the main container div. @param trigger_attrs {object} [optional] - Additional HTML attributes for the trigger button. @param content_attrs {object} [optional] - Additional HTML attributes for the dialog content article. @param content_header_attrs {object} [optional] - Additional HTML attributes for the dialog header. @param content_body_attrs {object} [optional] - Additional HTML attributes for the dialog body section. @param content_footer_attrs {object} [optional] - Additional HTML attributes for the dialog footer. @param open {boolean} [optional] [default=false] - Whether the dialog should be open initially. @param close_button {boolean} [optional] [default=true] - Whether to include a close button. @param close_on_overlay_click {boolean} [optional] [default=true] - Whether clicking the overlay closes the dialog. @param include_html {boolean} [optional] [default=true] - Whether to render the HTML structure. @param include_script {boolean} [optional] [default=true] - Whether to include the Alpine.js component script. @param register_on {array} [optional] [default=["alpine:init"]] - Alpine.js events to register the component on. #} {% macro dialog( id, trigger=None, title=None, description=None, footer=None, main_attrs={}, trigger_attrs={}, content_attrs={}, content_header_attrs={}, content_body_attrs={}, content_footer_attrs={}, open=false, close_button=true, close_on_overlay_click=true, include_html=true, include_script=false, register_on=["alpine:init"] ) %} {% if include_script %} {% include "components/dialog-script.njk" %} {% endif %} {% if include_html %}
{{ description | safe }}