{
  "timestamp": "2026-11-19T09:33:56",
  "compiler": {
    "name": "@stencil/core",
    "version": "4.45.4",
    "typescriptVersion": "5.8.3"
  },
  "storybook": "https://magma-design-system.github.io/magma/storybook/",
  "studio": "https://magma-design-system.github.io/magma/studio/",
  "components": [
    {
      "filePath": "src/components/mds-dropdown/mds-dropdown.tsx",
      "encapsulation": "shadow",
      "tag": "mds-dropdown",
      "docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
      "docsTags": [
        {
          "name": "slot",
          "text": "- Add `text string`, `HTML elements` or `components` to this slot, elements will be shown when the component is triggered."
        },
        {
          "name": "category",
          "text": "overlays"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-dropdown>` web component is a floating overlay surface of the Magma Design System that anchors arbitrary slotted content next to an external trigger element. It has no built-in trigger of its own: it attaches to a separate caller resolved via `target` and positions, flips and shifts itself around that element.\n\n#### Semantic Behavior\n\n- **Caller binding**: The dropdown does not render a trigger; it resolves its caller from the `target` selector and wires the chosen interaction onto that external element. Changing `target` re-binds the caller.\n- **Visibility is the single source of truth**: The `visible` prop drives the whole lifecycle - it positions the floating element, optionally shows the backdrop, and emits the events; setting it back to `false` dismisses it.\n- **Outside-click dismissal**: While open, clicking outside both the host and the caller closes the dropdown.\n- **Escape to close**: Pressing Escape hides the dropdown, and hands the focus back to the caller when the panel was holding it.\n- **Keyboard, when the panel is a `menu`**: the arrows on the caller open the panel and land on the first entry (Up on the last), Enter does the same; inside the panel the arrows walk the entries and wrap at the ends, Home and End go to the first and to the last, Tab closes and lets the focus leave from the caller. A panel that declares another role is left alone: the arrows of a calendar or of a form belong to what the panel holds.\n- **Backdrop**: When `backdrop` is set, a backdrop is shown while the dropdown is visible and removed on close.\n- **Emitted events**: `mdsDropdownChange` fires on every visibility transition; `mdsDropdownVisible` and `mdsDropdownHide` fire on open and close respectively. Each detail carries the resolved `caller` and the current `visible` state.\n- **Default slot is the panel content**: Anything in the default slot (text, HTML, or other components) is the surface shown when the dropdown is triggered.\n- **ARIA wiring**: The panel declares itself a `menu` and names the elements the slot receives as its entries (`role=\"menuitem\"`, a role of their own other than `button` being left alone); the caller receives `aria-haspopup`, an `aria-controls` pointing at the panel and an `aria-expanded` that follows `visible`. A panel that is not a list of actions declares its own `role` in the markup and keeps it, its contents then being left alone. A caller that exposes no role of its own - a generic host that keeps its control inside its shadow root, such as `mds-tab-item` - is left unwired, none of those attributes being valid on it.\n\n#### Properties & Visual Configurations\n\n- **`interaction`** decides how the caller opens the panel: `'click'` toggles on caller click (with outside-click and Escape dismissal), `'mouseover'` opens on hover and closes on mouse leave, and `'none'` wires nothing on the caller, so visibility is controlled programmatically through `visible` (an open panel still closes on outside click and Escape).\n- **`target`** (required) is the CSS selector of the external element the dropdown attaches to and positions against.\n\n#### Other behavioral props\n\n- **`placement`** sets the side relative to the caller, taken whenever it has room: by default (auto-placement) the panel moves to the opposite side, then to the sides across, only when it does not fit there. **`disableAutoPlacement`** pins it to `placement`, and **`flip`** then allows the fallback to the opposite side only. The panel is shifted to stay inside the viewport with a safe margin by default - **`disableShift`** opts out of this and **`shiftPadding`** tunes the margin.\n- **`offset`** controls the gap between the panel and the caller; the pointer toward the caller is shown by default (**`hideArrow`** removes it) and **`arrowPadding`** insets it from the panel edges.\n- the panel tracks the caller smoothly as the page scrolls by default (**`disableSmooth`** opts out); **`strategy`** chooses the CSS positioning mode (`'absolute'` vs `'fixed'`) and **`zIndex`** sets the stacking order.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-dropdown>` component, ordered from most common to most specialized. The examples assume a working knowledge of the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Basic Dropdown Menu\n\nThe minimal required setup: a trigger element with a unique `id` and a `<mds-dropdown>` with `target` pointing at it. The dropdown binds to the caller on `click` by default and dismisses on outside-click or Escape.\n\n```html\n<mds-button id=\"menu-utente\" label=\"Profilo\" icon=\"mi/baseline/account-circle\" variant=\"primary\" tone=\"weak\"></mds-button>\n\n<mds-dropdown target=\"#menu-utente\">\n  <mds-button icon=\"mi/baseline/settings\" variant=\"dark\" tone=\"text\" label=\"Impostazioni account\"></mds-button>\n  <mds-button icon=\"mi/baseline/logout\" variant=\"error\" tone=\"text\" label=\"Esci\"></mds-button>\n</mds-dropdown>\n```\n\n#### Panel That Is Not a Menu\n\nThe dropdown is a `menu` by default, a list of actions being what it holds most of the time. A panel that holds anything else - a calendar, a form, a paragraph with a link - declares its own `role`, which the component never overwrites: its contents are then left alone instead of being named entries of a menu.\n\n```html\n<mds-button id=\"info-policy\" label=\"Come usiamo i tuoi dati\" variant=\"primary\" tone=\"weak\"></mds-button>\n\n<mds-dropdown target=\"#info-policy\" role=\"group\">\n  <mds-text typography=\"tip\">I dati restano sui server di Maggioli.</mds-text>\n  <mds-button href=\"/policy\" label=\"Leggi la policy\" variant=\"dark\" tone=\"text\" size=\"sm\"></mds-button>\n</mds-dropdown>\n```\n\n#### Dropdown with Arrow Pointer\n\nThe arrow pointer is shown by default to visually connect the panel to its caller; add `hide-arrow` to remove it. Adjust `arrow-padding` when the panel is narrow and the arrow would clip the rounded corners.\n\n```html\n<mds-button id=\"aiuto-contestuale\" label=\"Aiuto\" icon=\"mi/baseline/help-outline\" variant=\"primary\" tone=\"outline\"></mds-button>\n\n<mds-dropdown target=\"#aiuto-contestuale\" arrow-padding=\"16\">\n  <mds-text typography=\"h6\">Come funziona?</mds-text>\n  <mds-text typography=\"detail\">Seleziona un campo per vedere la guida contestuale.</mds-text>\n</mds-dropdown>\n```\n\n#### Dropdown with Backdrop\n\nUse `backdrop` to dim the rest of the page while the panel is open. This is appropriate for panels with a higher modal weight, such as user-account menus or multi-step pickers.\n\nThe backdrop is appended to `<body>`, out of reach of the CSS inheritance of the dropdown: when it opens, the dropdown hands it the value it resolves for `--mds-dropdown-backdrop-z-index` and its fade duration, by default the ones of the page backdrop (`--magma-backdrop-z-index`, `--magma-backdrop-animation-duration`). With the animation preference set to reduce, the backdrop appears and goes without a fade.\n\n```html\n<mds-button id=\"selezione-filtri\" label=\"Filtra risultati\" icon=\"mi/baseline/filter-list\" variant=\"primary\"></mds-button>\n\n<mds-dropdown target=\"#selezione-filtri\" backdrop>\n  <mds-text typography=\"h6\">Filtra per categoria</mds-text>\n  <mds-filter>\n    <mds-filter-item label=\"Documenti\"></mds-filter-item>\n    <mds-filter-item label=\"Immagini\"></mds-filter-item>\n    <mds-filter-item label=\"Video\"></mds-filter-item>\n  </mds-filter>\n</mds-dropdown>\n```\n\n#### Mouseover Interaction\n\nSet `interaction=\"mouseover\"` for navigation mega-menus or info tooltips that should open on hover. The component adds a configurable delay (default 0.5 s, controlled by `--mds-dropdown-mouseover-delay`) before opening and closing.\n\n```html\n<mds-button id=\"info-progetto\" label=\"Dettagli progetto\" variant=\"dark\" tone=\"text\"></mds-button>\n\n<mds-dropdown target=\"#info-progetto\" interaction=\"mouseover\">\n  <mds-entity icon=\"mi/baseline/folder\">\n    <mds-text>Progetto Alfa - In corso</mds-text>\n  </mds-entity>\n</mds-dropdown>\n```\n\n#### Programmatic Control via `visible`\n\nSet `interaction=\"none\"` to disable automatic wiring and drive visibility yourself. This is useful when the trigger logic lives in app code - for example, opening on a keyboard shortcut or a programmatic state change.\n\n```html\n<mds-button id=\"apri-manuale\" label=\"Apri pannello\" variant=\"primary\"></mds-button>\n\n<mds-dropdown id=\"pannello-opzioni\" target=\"#apri-manuale\" interaction=\"none\">\n  <mds-text typography=\"detail\">Pannello gestito dal codice applicativo.</mds-text>\n</mds-dropdown>\n\n<script>\n  const dropdown = document.querySelector('#pannello-opzioni');\n  document.querySelector('#apri-manuale').addEventListener('click', () => {\n    dropdown.visible = !dropdown.visible;\n  });\n</script>\n```\n\n#### Placement and Auto-Placement\n\nUse `placement` to choose the side of the caller the panel opens on. Auto-placement is on by default: the panel takes `placement` whenever it has room there, and moves to the opposite side, then to the sides across, only when it does not fit; add `disable-auto-placement` to pin the panel strictly to `placement`.\n\n```html\n<!-- Pinned right-start placement (auto-placement disabled) -->\n<mds-button id=\"azioni-riga\" label=\"Azioni\" icon=\"mi/baseline/more-vert\" variant=\"dark\" tone=\"text\"></mds-button>\n\n<mds-dropdown target=\"#azioni-riga\" placement=\"right-start\" disable-auto-placement>\n  <mds-button icon=\"mi/baseline/edit\" variant=\"dark\" tone=\"text\" label=\"Modifica\"></mds-button>\n  <mds-button icon=\"mi/baseline/delete\" variant=\"error\" tone=\"text\" label=\"Elimina\"></mds-button>\n</mds-dropdown>\n\n<!-- Auto-placement (default) for constrained viewports -->\n<mds-button id=\"opzioni-voce\" label=\"Opzioni\" variant=\"primary\" tone=\"weak\"></mds-button>\n<mds-dropdown target=\"#opzioni-voce\">\n  <mds-button label=\"Duplica\" icon=\"mi/baseline/content-copy\" variant=\"dark\" tone=\"text\"></mds-button>\n</mds-dropdown>\n```\n\n#### Flip and Shift for Viewport Safety\n\nEnable `flip` together with `disable-auto-placement` to let the pinned panel jump to the opposite side, and to no other, when there is not enough space in the preferred direction; auto-placement already includes that fallback. Shifting the panel to keep it inside the viewport is on by default; tune the safe margin with `shift-padding` (or set `disable-shift` to opt out).\n\n```html\n<mds-button id=\"btn-edge\" label=\"Vicino al bordo\" variant=\"primary\"></mds-button>\n\n<mds-dropdown target=\"#btn-edge\" placement=\"top\" disable-auto-placement flip shift-padding=\"16\">\n  <mds-text typography=\"detail\">Questo pannello si sposta automaticamente se manca spazio.</mds-text>\n</mds-dropdown>\n```\n\n#### Listening to Visibility Events\n\nListen for `mdsDropdownVisible`, `mdsDropdownHide`, or `mdsDropdownChange` to react to open/close transitions. Each event detail contains `caller` (the resolved trigger element) and `visible` (the new state).\n\n```html\n<mds-button id=\"btn-notifica\" label=\"Notifiche\" icon=\"mi/baseline/notifications\" variant=\"primary\"></mds-button>\n\n<mds-dropdown id=\"pannello-notifiche\" target=\"#btn-notifica\">\n  <mds-text typography=\"detail\">Nessuna nuova notifica.</mds-text>\n</mds-dropdown>\n\n<script>\n  document.querySelector('#pannello-notifiche').addEventListener('mdsDropdownVisible', (e) => {\n    console.log('Aperto. Trigger:', e.detail.caller);\n  });\n  document.querySelector('#pannello-notifiche').addEventListener('mdsDropdownHide', () => {\n    console.log('Chiuso.');\n  });\n</script>\n```\n\n#### Strategy `fixed` Inside Scrolling or Stacked Containers\n\nUse `strategy=\"fixed\"` when the dropdown is placed inside a scroll container, a sticky header, or a modal. With `strategy=\"absolute\"` (the default) the panel may be clipped by `overflow: hidden` ancestors.\n\n```html\n<!-- Inside a modal or a sticky nav - use fixed positioning -->\n<mds-button id=\"menu-header\" label=\"Menu\" variant=\"primary\" tone=\"weak\"></mds-button>\n\n<mds-dropdown target=\"#menu-header\" strategy=\"fixed\">\n  <mds-button label=\"Pagina principale\" icon=\"mi/baseline/home\" variant=\"dark\" tone=\"text\"></mds-button>\n  <mds-button label=\"Impostazioni\" icon=\"mi/baseline/settings\" variant=\"dark\" tone=\"text\"></mds-button>\n</mds-dropdown>\n```\n\n#### DOM Placement at the Document Root\n\nPlace `<mds-dropdown>` as a direct child of `<body>` (or as close as possible to the root) when the caller lives deep inside a stacking context. Nesting the dropdown inside the same transformed or `overflow: hidden` ancestor as the caller can break positioning and backdrop rendering.\n\n```html\n<body>\n  <!-- Trigger lives inside a complex layout -->\n  <div class=\"app-layout\">\n    <nav>\n      <mds-button id=\"btn-profilo\" label=\"Profilo\" variant=\"primary\"></mds-button>\n    </nav>\n  </div>\n\n  <!-- Dropdown is a sibling of the layout root, not nested inside it -->\n  <mds-dropdown target=\"#btn-profilo\" strategy=\"fixed\" backdrop>\n    <mds-text typography=\"h6\">Mario Rossi</mds-text>\n    <mds-button label=\"Esci\" icon=\"mi/baseline/logout\" variant=\"error\" tone=\"text\"></mds-button>\n  </mds-dropdown>\n</body>\n```\n\n#### Styling Customization\n\nCustomize the dropdown only through its public `--mds-dropdown-*` CSS custom properties. Use the semantic color roles via `rgb(var(--magma-<role>))` to preserve dark-mode, named-theme and high-contrast behavior.\n\n```css\n.my-context mds-dropdown {\n  --mds-dropdown-background: rgb(var(--magma-surface-overlay));\n  --mds-dropdown-mouseover-delay: 0.2s;\n  --mds-dropdown-z-index: 5000;\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-dropdown>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/mistakes.md`](../../../../agents/mistakes.md) - they apply here too but are not repeated.\n\n#### Do Not Place the Dropdown Deep Inside a Scroll or Stacking Context\n\nNesting `<mds-dropdown>` inside a transformed, sticky, or `overflow: hidden` ancestor breaks floating positioning and backdrop rendering. Place it as close to `<body>` as the page structure allows, or switch to `strategy=\"fixed\"`.\n\n```html\n<!-- INCORRECT -->\n<div style=\"overflow: hidden; position: relative;\">\n  <mds-button id=\"trigger\" label=\"Apri\" variant=\"primary\"></mds-button>\n  <mds-dropdown target=\"#trigger\" backdrop>\n    <mds-text>Contenuto</mds-text>\n  </mds-dropdown>\n</div>\n\n<!-- CORRECT -->\n<div style=\"overflow: hidden; position: relative;\">\n  <mds-button id=\"trigger\" label=\"Apri\" variant=\"primary\"></mds-button>\n</div>\n<mds-dropdown target=\"#trigger\" strategy=\"fixed\" backdrop>\n  <mds-text>Contenuto</mds-text>\n</mds-dropdown>\n```\n\n#### Do Not Use `visible=\"false\"` to Close the Dropdown\n\n`visible` is a boolean prop. The component reads the string `\"false\"` as `false` and drops the attribute when it renders, but until then the attribute is in the DOM and attribute selectors (`mds-dropdown[visible]`) match it. Remove the attribute or set the property to `false` in JavaScript to close it.\n\n```html\n<!-- INCORRECT -->\n<mds-dropdown target=\"#btn\" visible=\"false\">\n  <mds-text>Contenuto</mds-text>\n</mds-dropdown>\n\n<!-- CORRECT -->\n<mds-dropdown target=\"#btn\">\n  <mds-text>Contenuto</mds-text>\n</mds-dropdown>\n```\n\n```js\n// CORRECT - closing programmatically\ndocument.querySelector('mds-dropdown').visible = false;\n```\n\n#### Do Not Listen for Native `click` on the Target Instead of Dropdown Events\n\nThe dropdown manages its own interaction and emits `mdsDropdownVisible`, `mdsDropdownHide`, and `mdsDropdownChange`. Attaching a raw `click` listener to the caller can interfere with inside-click handling and may fire before the dropdown has updated its state.\n\n```html\n<!-- INCORRECT -->\n<mds-button id=\"btn-info\" label=\"Info\" variant=\"primary\"></mds-button>\n<mds-dropdown target=\"#btn-info\">...</mds-dropdown>\n\n<script>\n  // raw native event on the caller - races with dropdown internals\n  document.querySelector('#btn-info').addEventListener('click', () => {\n    console.log('cliccato');\n  });\n</script>\n\n<!-- CORRECT -->\n<mds-button id=\"btn-info\" label=\"Info\" variant=\"primary\"></mds-button>\n<mds-dropdown id=\"dd-info\" target=\"#btn-info\">...</mds-dropdown>\n\n<script>\n  document.querySelector('#dd-info').addEventListener('mdsDropdownVisible', (e) => {\n    console.log('dropdown aperto', e.detail.visible);\n  });\n</script>\n```\n\n#### Do Not Use `target` Without a Matching Element in the DOM\n\n`target` is resolved with `querySelector` when the dropdown loads, again whenever `target` changes, and when the dropdown comes back to the page after being moved. If the selector does not match any element the dropdown has no caller and cannot position or open itself. Always verify the `id` is present in the DOM before the component loads.\n\n```html\n<!-- INCORRECT - typo: button has id \"btn-salva\", target points to \"#salva\" -->\n<mds-button id=\"btn-salva\" label=\"Salva\" variant=\"primary\"></mds-button>\n<mds-dropdown target=\"#salva\">\n  <mds-text>Opzioni di salvataggio</mds-text>\n</mds-dropdown>\n\n<!-- CORRECT -->\n<mds-button id=\"btn-salva\" label=\"Salva\" variant=\"primary\"></mds-button>\n<mds-dropdown target=\"#btn-salva\">\n  <mds-text>Opzioni di salvataggio</mds-text>\n</mds-dropdown>\n```\n\n#### Do Not Use `<mds-button-dropdown>` and `<mds-dropdown>` Interchangeably\n\n[`mds-button-dropdown`](../mds-button-dropdown/AGENTS.md) is a compound component that already embeds a trigger button and a dropdown. Use it for a simple action-button-plus-menu. Use `<mds-dropdown>` directly only when the caller is not an `mds-button`, or when you need full control over the trigger element.\n\n```html\n<!-- INCORRECT - re-implementing what mds-button-dropdown already does -->\n<mds-button id=\"btn-azioni\" label=\"Azioni\" icon=\"mi/baseline/expand-more\" variant=\"primary\"></mds-button>\n<mds-dropdown target=\"#btn-azioni\">\n  <mds-button label=\"Modifica\" variant=\"dark\" tone=\"text\"></mds-button>\n  <mds-button label=\"Elimina\" variant=\"error\" tone=\"text\"></mds-button>\n</mds-dropdown>\n\n<!-- CORRECT - use the dedicated compound component -->\n<mds-button-dropdown label=\"Azioni\" variant=\"primary\">\n  <mds-button label=\"Modifica\" variant=\"dark\" tone=\"text\"></mds-button>\n  <mds-button label=\"Elimina\" variant=\"error\" tone=\"text\"></mds-button>\n</mds-button-dropdown>\n```\n\n#### Do Not Customize via Undocumented Shadow Internals\n\nThe supported customization surface is the public `--mds-dropdown-*` CSS custom properties. Targeting internal elements via `::part()` on non-documented parts, `>>>`, or class-name selectors couples your code to the Shadow DOM structure and breaks on any internal refactor.\n\n```css\n/* INCORRECT */\nmds-dropdown::part(panel) {\n  border: 2px solid red;\n}\nmds-dropdown >>> .arrow {\n  display: none;\n}\n\n/* CORRECT */\nmds-dropdown {\n  --mds-dropdown-background: rgb(var(--magma-surface-overlay));\n  --mds-dropdown-z-index: 6000;\n}\n```\n"
      },
      "props": [
        {
          "name": "arrowPadding",
          "type": "number",
          "complexType": {
            "original": "number",
            "resolved": "number",
            "references": {}
          },
          "mutable": false,
          "attr": "arrow-padding",
          "reflectToAttr": false,
          "docs": "Sets the distance between arrow and dropdown margins.",
          "docsTags": [
            {
              "name": "default",
              "text": "24"
            }
          ],
          "default": "24",
          "values": [
            {
              "type": "number"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "backdrop",
          "type": "boolean | undefined",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "backdrop",
          "reflectToAttr": true,
          "docs": "Specifies if the component has a backdrop background",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "disableAutoPlacement",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "disable-auto-placement",
          "reflectToAttr": false,
          "docs": "Pins the component to `placement`: without it, the component moves to another side of the\ncaller when `placement` has no room.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "disableShift",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "disable-shift",
          "reflectToAttr": false,
          "docs": "If set, the component will not be kept inside the viewport.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "disableSmooth",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "disable-smooth",
          "reflectToAttr": false,
          "docs": "If set, the component will not follow the caller smoothly when the page scrolls.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "flip",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "flip",
          "reflectToAttr": false,
          "docs": "With `disableAutoPlacement`, moves the component to the opposite side of the caller when\n`placement` has no room. Auto-placement, the default, already does it.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hideArrow",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "hide-arrow",
          "reflectToAttr": true,
          "docs": "If set, the component will not have an arrow pointing to the caller.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "interaction",
          "type": "\"click\" | \"mouseover\" | \"none\"",
          "complexType": {
            "original": "DropdownInteractionType",
            "resolved": "\"click\" | \"mouseover\" | \"none\"",
            "references": {
              "DropdownInteractionType": {
                "location": "import",
                "path": "./meta/types",
                "id": "src/components/mds-dropdown/meta/types.ts::DropdownInteractionType",
                "referenceLocation": "DropdownInteractionType"
              }
            }
          },
          "mutable": false,
          "attr": "interaction",
          "reflectToAttr": true,
          "docs": "Specifies if the component is triggered from the caller on mouseover or click event",
          "docsTags": [
            {
              "name": "default",
              "text": "'click'"
            }
          ],
          "default": "'click'",
          "values": [
            {
              "value": "click",
              "type": "string"
            },
            {
              "value": "mouseover",
              "type": "string"
            },
            {
              "value": "none",
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "offset",
          "type": "number",
          "complexType": {
            "original": "number",
            "resolved": "number",
            "references": {}
          },
          "mutable": false,
          "attr": "offset",
          "reflectToAttr": false,
          "docs": "Sets distance between the dropdown and the caller.",
          "docsTags": [
            {
              "name": "default",
              "text": "24"
            }
          ],
          "default": "24",
          "values": [
            {
              "type": "number"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "placement",
          "type": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
          "complexType": {
            "original": "FloatingUIPlacement",
            "resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
            "references": {
              "FloatingUIPlacement": {
                "location": "import",
                "path": "@type/floating-ui",
                "id": "src/type/floating-ui.ts::FloatingUIPlacement",
                "referenceLocation": "FloatingUIPlacement"
              }
            }
          },
          "mutable": false,
          "attr": "placement",
          "reflectToAttr": false,
          "docs": "Specifies where the component should be placed relative to the caller: the side it takes\nwhenever it has room there.",
          "docsTags": [
            {
              "name": "default",
              "text": "'bottom'"
            }
          ],
          "default": "'bottom'",
          "values": [
            {
              "value": "bottom",
              "type": "string"
            },
            {
              "value": "bottom-end",
              "type": "string"
            },
            {
              "value": "bottom-start",
              "type": "string"
            },
            {
              "value": "left",
              "type": "string"
            },
            {
              "value": "left-end",
              "type": "string"
            },
            {
              "value": "left-start",
              "type": "string"
            },
            {
              "value": "right",
              "type": "string"
            },
            {
              "value": "right-end",
              "type": "string"
            },
            {
              "value": "right-start",
              "type": "string"
            },
            {
              "value": "top",
              "type": "string"
            },
            {
              "value": "top-end",
              "type": "string"
            },
            {
              "value": "top-start",
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "shiftPadding",
          "type": "number",
          "complexType": {
            "original": "number",
            "resolved": "number",
            "references": {}
          },
          "mutable": false,
          "attr": "shift-padding",
          "reflectToAttr": false,
          "docs": "Sets a safe area distance between the dropdown and the viewport.",
          "docsTags": [
            {
              "name": "default",
              "text": "24"
            }
          ],
          "default": "24",
          "values": [
            {
              "type": "number"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "strategy",
          "type": "\"absolute\" | \"fixed\"",
          "complexType": {
            "original": "FloatingUIStrategy",
            "resolved": "\"absolute\" | \"fixed\"",
            "references": {
              "FloatingUIStrategy": {
                "location": "import",
                "path": "@type/floating-ui",
                "id": "src/type/floating-ui.ts::FloatingUIStrategy",
                "referenceLocation": "FloatingUIStrategy"
              }
            }
          },
          "mutable": false,
          "attr": "strategy",
          "reflectToAttr": false,
          "docs": "Sets the CSS position strategy of the component.",
          "docsTags": [
            {
              "name": "default",
              "text": "'absolute'"
            }
          ],
          "default": "'absolute'",
          "values": [
            {
              "value": "absolute",
              "type": "string"
            },
            {
              "value": "fixed",
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "target",
          "type": "string",
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "mutable": false,
          "attr": "target",
          "reflectToAttr": false,
          "docs": "Specifies the selector of the target element, this attribute is used with `querySelector` method.",
          "docsTags": [
            {
              "name": "example",
              "text": "'#profile-button'"
            }
          ],
          "values": [
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": true,
          "getter": false,
          "setter": false
        },
        {
          "name": "visible",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": true,
          "attr": "visible",
          "reflectToAttr": true,
          "docs": "Specifies the visibility of the component.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "zIndex",
          "type": "number",
          "complexType": {
            "original": "number",
            "resolved": "number",
            "references": {}
          },
          "mutable": false,
          "attr": "z-index",
          "reflectToAttr": false,
          "docs": "Specifies the visibility of the component.",
          "docsTags": [],
          "values": [
            {
              "type": "number"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [],
      "events": [
        {
          "event": "mdsDropdownChange",
          "detail": "MdsDropdownEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsDropdownEventDetail",
            "resolved": "MdsDropdownEventDetail",
            "references": {
              "MdsDropdownEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-dropdown/meta/event-detail.ts::MdsDropdownEventDetail",
                "referenceLocation": "MdsDropdownEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when a modal is visible or hidden",
          "docsTags": []
        },
        {
          "event": "mdsDropdownHide",
          "detail": "MdsDropdownEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsDropdownEventDetail",
            "resolved": "MdsDropdownEventDetail",
            "references": {
              "MdsDropdownEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-dropdown/meta/event-detail.ts::MdsDropdownEventDetail",
                "referenceLocation": "MdsDropdownEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when a modal is hidden",
          "docsTags": []
        },
        {
          "event": "mdsDropdownVisible",
          "detail": "MdsDropdownEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsDropdownEventDetail",
            "resolved": "MdsDropdownEventDetail",
            "references": {
              "MdsDropdownEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-dropdown/meta/event-detail.ts::MdsDropdownEventDetail",
                "referenceLocation": "MdsDropdownEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when a modal is visible",
          "docsTags": []
        }
      ],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-dropdown-arrow-background",
          "annotation": "prop",
          "docs": "Sets the fill color of the arrow.",
          "visibility": "internal"
        },
        {
          "name": "--mds-dropdown-backdrop-duration",
          "annotation": "prop",
          "docs": "Sets the duration of the fade of the backdrop shown with the `backdrop` attribute, the one of the page backdrop by default.",
          "visibility": "internal"
        },
        {
          "name": "--mds-dropdown-backdrop-z-index",
          "annotation": "prop",
          "docs": "Sets the z-index of the backdrop shown with the `backdrop` attribute, the one of the page backdrop by default.",
          "visibility": "public"
        },
        {
          "name": "--mds-dropdown-background",
          "annotation": "prop",
          "docs": "Sets the background-color of the dropdown.",
          "visibility": "public"
        },
        {
          "name": "--mds-dropdown-drop-shadow",
          "annotation": "prop",
          "docs": "Sets the drop-shadow of the dropdown.",
          "visibility": "internal"
        },
        {
          "name": "--mds-dropdown-drop-shadow-color-rgb",
          "annotation": "prop",
          "docs": "Sets the color used for the dropdown shadow",
          "visibility": "internal"
        },
        {
          "name": "--mds-dropdown-duration",
          "annotation": "prop",
          "docs": "Sets the duration of the dropdown animation.",
          "visibility": "internal"
        },
        {
          "name": "--mds-dropdown-ease",
          "annotation": "prop",
          "docs": "Sets the easing of the dropdown animation.",
          "visibility": "internal"
        },
        {
          "name": "--mds-dropdown-mouseover-delay",
          "annotation": "prop",
          "docs": "Sets the delay duration of the component when the caller trigger mouseover event, it's used by the javascript code.",
          "visibility": "public"
        },
        {
          "name": "--mds-dropdown-transform-from",
          "annotation": "prop",
          "docs": "Sets the from animation transform of the dropdown.",
          "visibility": "internal"
        },
        {
          "name": "--mds-dropdown-transform-to",
          "annotation": "prop",
          "docs": "Sets the to animation transform of the dropdown.",
          "visibility": "internal"
        },
        {
          "name": "--mds-dropdown-z-index",
          "annotation": "prop",
          "docs": "Sets the z-index of the component.",
          "visibility": "public"
        }
      ],
      "slots": [
        {
          "name": "",
          "docs": "Add `text string`, `HTML elements` or `components` to this slot, elements will be shown when the component is triggered."
        }
      ],
      "parts": [],
      "states": [],
      "dependents": [
        "mds-button-dropdown",
        "mds-input-date",
        "mds-input-date-range",
        "mds-policy-ai",
        "mds-pref-language",
        "mds-pref-theme"
      ],
      "dependencies": [],
      "dependencyGraph": {
        "mds-button-dropdown": [
          "mds-dropdown"
        ],
        "mds-input-date": [
          "mds-dropdown"
        ],
        "mds-input-date-range": [
          "mds-dropdown"
        ],
        "mds-policy-ai": [
          "mds-dropdown"
        ],
        "mds-pref-language": [
          "mds-dropdown"
        ],
        "mds-pref-theme": [
          "mds-dropdown"
        ]
      },
      "storybook": "ui-dropdown--docs"
    }
  ]
}
