{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [
      {
        "attributes": [],
        "description": "Scrollable content region; no ARIA attributes.",
        "part": "content"
      },
      {
        "attributes": [
          {
            "name": "aria-label",
            "value": "${ifDefined(aria.ariaLabel)}"
          },
          {
            "name": "aria-labelledby",
            "value": "${ifDefined(aria.labelledBy)}"
          },
          {
            "name": "aria-modal",
            "value": "true"
          },
          {
            "name": "role",
            "value": "${aria.role}"
          }
        ],
        "description": "Sliding panel: `aria-modal=\"true\"` with the configured `dialog`/`alertdialog` role, named via `aria-label` or `aria-labelledby`.",
        "part": "drawer"
      },
      {
        "attributes": [
          {
            "name": "aria-hidden",
            "value": "true"
          }
        ],
        "description": "Drag-handle hit area, `aria-hidden=\"true\"` (decorative; the panel itself is draggable).",
        "part": "handle"
      },
      {
        "attributes": [],
        "description": "Visual handle pill; no ARIA attributes.",
        "part": "handle-bar"
      },
      {
        "attributes": [],
        "description": "Backdrop wrapper; no ARIA attributes of its own.",
        "part": "overlay"
      }
    ],
    "notes": [
      "Shares the dialog accessibility model: modal panel with the configured role, focus moved in on open and restored to the opener on close.",
      "Swipe dismissal ignores interactive content and scrollable regions that can still scroll toward the dismiss direction."
    ]
  },
  "attributes": [
    {
      "default": "'bottom'",
      "description": "Edge the drawer slides from: `bottom` (default), `top`, `left`, or `right`.",
      "from": null,
      "name": "placement",
      "property": "placement",
      "reflect": false,
      "tokens": null,
      "type": "DrawerPlacement",
      "values": [
        "bottom",
        "top",
        "left",
        "right"
      ]
    },
    {
      "default": "false",
      "description": "Hides the drag handle bar.",
      "from": null,
      "name": "no-handle",
      "property": "no-handle",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Disables drag/swipe dismissal.",
      "from": null,
      "name": "no-swipe",
      "property": "no-swipe",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Applies a backdrop blur to the overlay.",
      "from": null,
      "name": "blur",
      "property": "backdrop-blur",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Opens the dialog on first render and stays in sync with `show()` and `hide()`.",
      "from": "DialogMixin",
      "name": "open",
      "property": "open",
      "reflect": true,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Vertically centers the panel within the overlay.",
      "from": "DialogMixin",
      "name": "center",
      "property": "center",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Adds `z-modal-container` to the overlay for a contained presentation.",
      "from": "DialogMixin",
      "name": "container",
      "property": "container",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Adds `z-modal-full` to the overlay for a full-screen presentation.",
      "from": "DialogMixin",
      "name": "full",
      "property": "full",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Keeps other open dialogs open; without it, showing this dialog hides them. Stacked overlays receive increasing z-index.",
      "from": "DialogMixin",
      "name": "stack",
      "property": "stack",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Keeps the component in its original DOM position instead of teleporting it to `document.body`.",
      "from": "DialogMixin",
      "name": "inline",
      "property": "inline",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Disables closing when the overlay background is clicked.",
      "from": "DialogMixin",
      "name": "no-bg-close",
      "property": "no-bg-close",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Disables closing with the Esc key.",
      "from": "DialogMixin",
      "name": "no-esc-close",
      "property": "no-esc-close",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Removes the rendered DOM after the close transition; the next show mounts it again.",
      "from": "DialogMixin",
      "name": "unmount",
      "property": "unmount",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "'dialog'",
      "description": "ARIA role of the panel: `dialog` or `alertdialog`.",
      "from": "DialogMixin",
      "name": "dialog-role",
      "property": "dialogRole",
      "reflect": false,
      "tokens": null,
      "type": "'dialog' | 'alertdialog'",
      "values": [
        "dialog",
        "alertdialog"
      ]
    },
    {
      "default": "''",
      "description": "Accessible name for the panel when no `aria-labelledby` is set.",
      "from": "DialogMixin",
      "name": "aria-label",
      "property": "ariaLabelText",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Id of the element that names the panel; takes precedence over `aria-label`.",
      "from": "DialogMixin",
      "name": "aria-labelledby",
      "property": "ariaLabelledbyText",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Per-instance text overrides as `key: text` pairs, merged over the global `z-i18n` script and the built-in defaults.",
      "from": "Hwc",
      "name": "i18n",
      "property": "i18n",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Floating UI placement options (for example `offset` and `shiftPadding`) parsed as `key: value` pairs.",
      "from": "Hwc",
      "name": "floating",
      "property": "floating",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Skips re-rendering after the first render; an existing `data-host-inner` child is adopted as the rendered DOM.",
      "from": "Hwc",
      "name": "force-prevent-rerender",
      "property": "force-prevent-rerender",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "''",
      "description": "Selector or id of an external element or `<template>` whose inner content is cloned in place of an inline `template[data-fn=\"template\"]` child.",
      "from": "Hwc",
      "name": "template",
      "property": "template",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Adds classes to named parts as `key: classes` pairs; a plain string targets the default part.",
      "from": "Base",
      "name": "cls",
      "property": "cls",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Adds inline styles to named parts as `key: styles` pairs; a plain string targets the default part.",
      "from": "Base",
      "name": "stl",
      "property": "stl",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    }
  ],
  "category": "overlays",
  "children": [
    {
      "attributes": [
        {
          "description": "Marks the script as configuration (value: `config`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "config"
          ]
        },
        {
          "description": "Re-parses the configuration when the script mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "description": "JSON configuration script parsed by the base class (i18n, cls, stl, floating).",
      "element": "script",
      "id": "config",
      "required": false,
      "selector": "script[data-fn=\"config\"][type=\"application/json\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the select as the data source (value: `data-source`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "data-source"
          ]
        },
        {
          "description": "Re-parses the options when the select mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "children": [
        {
          "attributes": [
            {
              "description": "Group header text; also the default group key.",
              "name": "label",
              "required": true,
              "type": "string"
            },
            {
              "description": "Disables every option in the group.",
              "name": "disabled",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Overrides the group key used in the parsed data.",
              "name": "data-key",
              "required": false,
              "type": "string"
            },
            {
              "description": "Comma-separated keywords stored with the group's data.",
              "name": "data-keywords",
              "required": false,
              "type": "comma-separated string"
            }
          ],
          "children": [
            {
              "attributes": [
                {
                  "description": "Value carried by this option in the parsed data.",
                  "name": "value",
                  "required": false,
                  "type": "string"
                },
                {
                  "description": "Makes the option non-selectable.",
                  "name": "disabled",
                  "required": false,
                  "type": "boolean"
                },
                {
                  "description": "Marks the option as initially selected.",
                  "name": "selected",
                  "required": false,
                  "type": "boolean"
                },
                {
                  "description": "Extra search terms, comma-separated; searched alongside the label and value.",
                  "name": "data-keywords",
                  "required": false,
                  "type": "comma-separated string"
                }
              ],
              "description": "One option entry within the group.",
              "element": "option",
              "repeatable": true
            }
          ],
          "description": "Groups options under a label.",
          "element": "optgroup",
          "repeatable": true
        },
        {
          "attributes": [
            {
              "description": "Value carried by this option in the parsed data.",
              "name": "value",
              "required": false,
              "type": "string"
            },
            {
              "description": "Makes the option non-selectable.",
              "name": "disabled",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Marks the option as initially selected.",
              "name": "selected",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Extra search terms, comma-separated.",
              "name": "data-keywords",
              "required": false,
              "type": "comma-separated string"
            }
          ],
          "description": "One ungrouped option entry.",
          "element": "option",
          "repeatable": true
        }
      ],
      "description": "Hidden select parsed into grouped option data by the base class.",
      "element": "select",
      "id": "data-source",
      "required": false,
      "selector": "select[data-fn=\"data-source\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the template as an icon source (value: `icons`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "icons"
          ]
        },
        {
          "description": "Re-parses the icons when the template mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "children": [
        {
          "attributes": [
            {
              "description": "Icon key referenced by `$icons`.",
              "name": "data-key",
              "required": true,
              "type": "string"
            }
          ],
          "description": "One icon element.",
          "element": "*",
          "repeatable": true
        }
      ],
      "description": "Instance-level icon repository.",
      "element": "template",
      "id": "icons",
      "required": false,
      "selector": "template[data-fn=\"icons\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the template for deferred mounting (value: `template`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "template"
          ]
        },
        {
          "description": "Re-parses the template when it mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "description": "Deferred content template mounted by the base class.",
      "element": "template",
      "id": "template",
      "required": false,
      "selector": "template[data-fn=\"template\"]"
    }
  ],
  "cssClasses": [
    {
      "appliesTo": "z-drawer",
      "class": ".z-drawer",
      "description": "Root class of the sliding panel.",
      "role": "root"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-drawer-content",
      "description": "Scrollable content region of the panel.",
      "role": "state"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-drawer-handle",
      "description": "Drag-handle hit area along the panel's outer edge.",
      "role": "state"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-drawer-handle-bar",
      "description": "The visible handle pill.",
      "role": "state"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-drawer-overlay",
      "description": "The drawer's backdrop overlay.",
      "role": "element"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas",
      "description": "Fixed side-bar overlay root (offcanvas presentation).",
      "role": "element"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas-bar",
      "description": "The sliding side bar itself.",
      "role": "element"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas-bar-animation",
      "description": "Enables the bar's slide transition.",
      "role": "element"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas-container",
      "description": "Page container that can be pushed aside by the bar.",
      "role": "element"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas-container-animation",
      "description": "Pushes the container by the bar width while open.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas-flip",
      "description": "Mirrors the offcanvas to the right edge.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas-overlay",
      "description": "Overlay presentation: dims the page behind the bar.",
      "role": "element"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas-page",
      "description": "Page root class clipping horizontal overflow while an offcanvas is open.",
      "role": "element"
    },
    {
      "appliesTo": ".z-drawer",
      "class": ".z-offcanvas-reveal",
      "description": "Reveal presentation: the bar's wrapper grows in width instead of sliding.",
      "role": "element"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-bg)",
      "description": "Background color of the panel.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-bg",
      "scope": ".z-drawer",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-border)",
      "description": "Border base color, mixed with transparency using `--z-drawer-border-color-o`.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-border-color",
      "scope": ".z-drawer",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-border-o)",
      "description": "Border opacity percentage used in the border color mix.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-border-color-o",
      "scope": ".z-drawer",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "border-bottom-width",
        "border-inline-width",
        "border-left-width",
        "border-right-width",
        "border-top-width"
      ],
      "default": "1px",
      "description": "Border width on the panel's inner edge.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-border-width",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "var(--z-bg-f)",
      "description": "Text color of the panel.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-color",
      "scope": ".z-drawer",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-border)",
      "description": "Handle base color, mixed with transparency using `--z-drawer-handle-bg-o`.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-handle-bg",
      "scope": ".z-drawer",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "calc(var(--z-border-o) * 1.25)",
      "description": "Handle opacity percentage used in the color mix.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-handle-bg-o",
      "scope": ".z-drawer",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "calc(var(--z-border-o) * 2.25)",
      "description": "Handle opacity percentage while hovered.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-handle-hover-bg-o",
      "scope": ".z-drawer",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "height",
        "width"
      ],
      "default": "5rem",
      "description": "Length of the handle pill.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-handle-length",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "9999px",
      "description": "Corner radius of the handle pill.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-handle-radius",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "height",
        "width"
      ],
      "default": "0.375rem",
      "description": "Thickness of the handle pill.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-handle-thickness",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "max-height"
      ],
      "default": "85dvh",
      "description": "Maximum height of top/bottom drawers.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-max-height",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "max-width"
      ],
      "default": "calc(100vw - 2rem)",
      "description": "Maximum width of left/right drawers.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-max-width",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-end-end-radius",
        "border-end-start-radius",
        "border-start-end-radius",
        "border-start-start-radius"
      ],
      "default": "calc(var(--z-global-radius) * 2)",
      "description": "Corner radius of the panel's outer corners.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-radius",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "box-shadow"
      ],
      "default": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
      "description": "Box shadow of the panel.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-shadow",
      "scope": ".z-drawer",
      "syntax": ""
    },
    {
      "affects": [
        "border-end-end-radius",
        "border-end-start-radius",
        "border-start-end-radius",
        "border-start-start-radius"
      ],
      "default": "0px",
      "description": "Corner radius applied on the placement side.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-side-radius",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "transition"
      ],
      "default": "transform 0.15s cubic-bezier(0.16, 1, 0.3, 1)",
      "description": "Transition timing of the panel slide.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-transition",
      "scope": ".z-drawer",
      "syntax": ""
    },
    {
      "affects": [
        "width"
      ],
      "default": "24rem",
      "description": "Width of left/right drawers.",
      "file": "src/css/kit-components/drawer.css",
      "kind": "base",
      "name": "--z-drawer-width",
      "scope": ".z-drawer",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-left-width",
        "border-right-width"
      ],
      "default": "1px",
      "description": "Border width of the offcanvas bar's inner edge.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-bar-border-width",
      "scope": ".z-offcanvas-bar",
      "syntax": "<length>"
    },
    {
      "affects": [
        "transition"
      ],
      "default": "left 0.3s ease-out",
      "description": "Transition of the offcanvas bar slide.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-bar-transition",
      "scope": ".z-offcanvas-bar",
      "syntax": ""
    },
    {
      "affects": [
        "left",
        "right",
        "width"
      ],
      "default": "288px",
      "description": "Width of the offcanvas bar.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-bar-width",
      "scope": ".z-offcanvas",
      "syntax": "<length>"
    },
    {
      "affects": [
        "transition"
      ],
      "default": "left 0.3s ease-out",
      "description": "Transition of the pushed page container.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-container-transition",
      "scope": ".z-offcanvas-container",
      "syntax": ""
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "#000",
      "description": "Offcanvas backdrop base color, mixed with transparency using `--z-offcanvas-overlay-bg-o`.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-overlay-bg",
      "scope": ".z-offcanvas-overlay",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "80%",
      "description": "Backdrop opacity percentage used in the background mix.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-overlay-bg-o",
      "scope": ".z-offcanvas-overlay",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "-webkit-backdrop-filter",
        "backdrop-filter"
      ],
      "default": "var(--z-global-blur)",
      "description": "Backdrop blur radius of the offcanvas overlay.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-overlay-blur",
      "scope": ".z-offcanvas-overlay",
      "syntax": ""
    },
    {
      "affects": [
        "opacity"
      ],
      "default": "1",
      "description": "Final opacity of the backdrop when open.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-overlay-opacity",
      "scope": ".z-offcanvas-overlay",
      "syntax": "<number>"
    },
    {
      "affects": [
        "transition"
      ],
      "default": "opacity 0.15s linear",
      "description": "Transition of the backdrop opacity.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-overlay-transition",
      "scope": ".z-offcanvas-overlay",
      "syntax": ""
    },
    {
      "affects": [
        "transition"
      ],
      "default": "width 0.3s ease-out",
      "description": "Transition of the reveal wrapper's width.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-reveal-transition",
      "scope": ".z-offcanvas-reveal",
      "syntax": ""
    },
    {
      "affects": [
        "z-index"
      ],
      "default": "1000",
      "description": "Stacking order of the offcanvas overlay.",
      "file": "src/css/kit-components/offcanvas.css",
      "kind": "base",
      "name": "--z-offcanvas-z-index",
      "scope": ".z-offcanvas",
      "syntax": "<integer>"
    }
  ],
  "dataHooks": [
    {
      "appliesTo": "external-trigger",
      "attribute": "data-close",
      "description": "Clicking the element closes the dialog matched by the selector (usually `#id`).",
      "from": "DialogMixin",
      "role": "trigger",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-host-inner",
      "description": "Marks the rendered inner wrapper so `force-prevent-rerender` can adopt server-rendered DOM without re-rendering.",
      "from": "Hwc",
      "role": "config",
      "values": []
    },
    {
      "appliesTo": "external-trigger",
      "attribute": "data-open",
      "description": "Clicking the element opens the dialog matched by the selector without toggling.",
      "from": "DialogMixin",
      "role": "trigger",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-part",
      "description": "Marks adopted server-rendered structure: `overlay`, `drawer`, `handle`, and `content`.",
      "role": "marker",
      "values": [
        "content",
        "drawer",
        "handle",
        "overlay"
      ]
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-reactive",
      "description": "Opts the marked child (config script, data source, icons, or template) into live re-parsing when its DOM mutates.",
      "from": "Hwc",
      "role": "config",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-side",
      "description": "Set by the component to the resolved placement; selects the edge-specific styling.",
      "role": "marker",
      "values": []
    },
    {
      "appliesTo": "external-trigger",
      "attribute": "data-toggle",
      "description": "Clicking the element toggles the dialog matched by the selector (usually `#id`).",
      "from": "DialogMixin",
      "role": "trigger",
      "values": []
    }
  ],
  "events": [
    {
      "bubbles": true,
      "cancelable": true,
      "description": "Fires before closing; call `preventDefault()` to abort.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-drawer:before-hide"
    },
    {
      "bubbles": true,
      "cancelable": true,
      "description": "Fires before opening; call `preventDefault()` to abort.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-drawer:before-show"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the mounted DOM is removed, via `unmount` or `destroy()`.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-drawer:destroy"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires after the close transition completes and focus is restored to the opener.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-drawer:hidden"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the dialog starts closing.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-drawer:hide"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires once when the dialog DOM is first mounted.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-drawer:mount"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the dialog starts opening, before the transition completes.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-drawer:show"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires after the open transition completes.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-drawer:shown"
    }
  ],
  "i18n": [],
  "icons": [],
  "id": "drawer",
  "inherits": [
    "DialogMixin",
    "Hwc",
    "Base"
  ],
  "keyboard": [],
  "kind": "hwc",
  "methods": [
    {
      "description": "Closes and unmounts the dialog DOM; optionally removes the host element as well.",
      "from": "DialogMixin",
      "name": "destroy",
      "params": [
        {
          "default": "false",
          "name": "removeHost",
          "optional": true,
          "type": "boolean"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Closes the dialog and restores focus to the opener.",
      "from": "DialogMixin",
      "name": "hide",
      "params": [],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Opens the dialog; the trigger element receives focus back on close.",
      "from": "DialogMixin",
      "name": "show",
      "params": [
        {
          "default": null,
          "name": "trigger",
          "optional": true,
          "type": "HTMLElement | null"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Opens the dialog if closed, otherwise closes it.",
      "from": "DialogMixin",
      "name": "toggle",
      "params": [
        {
          "default": null,
          "name": "trigger",
          "optional": true,
          "type": "HTMLElement | null"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    }
  ],
  "notes": [
    "Drag the handle (or the panel when no handle is present) toward the placement edge to dismiss; a fast flick dismisses even below the halfway point.",
    "Content placed inside the host is adopted into `.z-drawer-content`; an existing `.z-drawer`/`.z-offcanvas-bar` structure is preserved.",
    "The offcanvas classes style side-bar presentations (slide, reveal, overlay, push) and mirror with `.z-offcanvas-flip`."
  ],
  "parts": {
    "defaultClsTarget": "drawer",
    "defaultStlTarget": "drawer",
    "items": [
      {
        "defaultCls": "z-drawer-content",
        "description": "The scrollable content region inside the panel (default `z-drawer-content`).",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "content",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-drawer",
        "description": "The sliding panel (default `z-drawer`); the default `cls`/`stl` target.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "drawer",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-drawer-handle",
        "description": "The drag-handle hit area at the panel's outer edge (default `z-drawer-handle`).",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "handle",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-drawer-handle-bar",
        "description": "The visible handle pill inside the hit area (default `z-drawer-handle-bar`).",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "handle-bar",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-modal z-drawer-overlay",
        "description": "The backdrop overlay (default `z-modal z-drawer-overlay`).",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "overlay",
        "supportsCls": true,
        "supportsStl": true
      }
    ]
  },
  "recipes": [],
  "related": [
    "dialog",
    "drop"
  ],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/drawer.css",
      "src/css/kit-components/offcanvas.css"
    ],
    "cssSelectors": [
      ".z-drawer",
      ".z-drawer-*",
      ".z-offcanvas",
      ".z-offcanvas-*"
    ],
    "ts": "src/js/hwc/components/drawer.ts"
  },
  "summary": "Panel sliding in from a screen edge with a drag handle, swipe-to-dismiss, and offcanvas-style presentations.",
  "tag": "z-drawer",
  "title": "Drawer"
}
