{
  "name": "modal-dialog-confirm",
  "kind": "block",
  "primary": "modal-ui",
  "page": "/catalog/ui-patterns/app/destructive-confirm-modal/destructive-confirm-modal.contents.html",
  "slots": [],
  "nested": [],
  "attrs": {},
  "html": "<modal-ui>\n  <header>\n    <span slot=\"icon\">\n      <avatar-ui icon=\"warning-circle\" color=\"danger\"></avatar-ui>\n    </span>\n    <span slot=\"heading\">\n      <text-ui strong>Are you sure?</text-ui>\n    </span>\n  </header>\n  <section>\n    <col-ui gap=\"3\">\n      <text-ui>This action cannot be undone. Type the resource name below to confirm.</text-ui>\n      <field-ui label=\"Resource name\">\n        <input-ui placeholder=\"my-resource-123\"></input-ui>\n      </field-ui>\n    </col-ui>\n  </section>\n  <footer>\n    <row-ui gap=\"2\" justify=\"end\">\n      <button-ui text=\"Cancel\" variant=\"ghost\"></button-ui>\n      <button-ui text=\"Delete\" color=\"danger\"></button-ui>\n    </row-ui>\n  </footer>\n</modal-ui>",
  "source": "catalog/ui-patterns/app/destructive-confirm-modal/destructive-confirm-modal.contents.html",
  "metadata": {
    "domain": "overlay",
    "description": "Destructive-action modal dialog with a confirmation form — resource-name input field, cancel and delete action buttons, warning icon, and irreversible-action prose.",
    "keywords": [
      "modal",
      "dialog",
      "form",
      "confirm",
      "modal-ui",
      "button-ui",
      "destructive",
      "confirm",
      "input",
      "action",
      "cancel",
      "submit",
      "dialog",
      "overlay",
      "warning",
      "danger",
      "irreversible"
    ]
  },
  "captured_at": "2026-06-07T19:28:13.657Z",
  "template": [
    {
      "id": "avatar",
      "component": "Avatar",
      "icon": "warning-circle"
    },
    {
      "id": "text",
      "component": "Text",
      "variant": "body",
      "slot": "icon",
      "children": [
        "avatar"
      ]
    },
    {
      "id": "text-3",
      "component": "Text",
      "strong": true,
      "textContent": "Are you sure?"
    },
    {
      "id": "text-2",
      "component": "Text",
      "variant": "body",
      "slot": "heading",
      "children": [
        "text-3"
      ]
    },
    {
      "id": "header",
      "component": "Header",
      "children": [
        "text",
        "text-2"
      ]
    },
    {
      "id": "text-4",
      "component": "Text",
      "textContent": "This action cannot be undone. Type the resource name below to confirm."
    },
    {
      "id": "input",
      "component": "Input",
      "placeholder": "my-resource-123"
    },
    {
      "id": "field",
      "component": "Field",
      "label": "Resource name",
      "children": [
        "input"
      ]
    },
    {
      "id": "column",
      "component": "Column",
      "gap": "3",
      "children": [
        "text-4",
        "field"
      ]
    },
    {
      "id": "section",
      "component": "Section",
      "children": [
        "column"
      ]
    },
    {
      "id": "button",
      "component": "Button",
      "text": "Cancel",
      "variant": "ghost"
    },
    {
      "id": "button-2",
      "component": "Button",
      "color": "danger",
      "text": "Delete"
    },
    {
      "id": "row",
      "component": "Row",
      "gap": "2",
      "justify": "end",
      "children": [
        "button",
        "button-2"
      ]
    },
    {
      "id": "footer",
      "component": "Footer",
      "children": [
        "row"
      ]
    },
    {
      "id": "root",
      "component": "Modal",
      "children": [
        "header",
        "section",
        "footer"
      ]
    }
  ]
}
