{
  "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-header/mds-header.tsx",
      "encapsulation": "shadow",
      "tag": "mds-header",
      "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": "part",
          "text": "menu - The container element of the modal"
        },
        {
          "name": "slot",
          "text": "- Add `mds-header-bar` element/s."
        },
        {
          "name": "slot",
          "text": "menu - Put actions and other contents that will be shown as mobile menu. Add `text string`, `HTML elements` or `components` to this slot."
        },
        {
          "name": "category",
          "text": "structure"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-header>` web component is the top-level page header container of the Magma Design System. It is a compound parent that wraps one or more `<mds-header-bar>` elements, orchestrating their scroll-driven appearance, auto-hide visibility, and an optional mobile menu rendered as a side modal.\n\n#### Semantic Behavior\n\n- **Compound parent**: Hosts `<mds-header-bar>` children in the default slot and relays its `menu` and `nav` settings down to the bar.\n- **In the flow, and it stays put**: The header takes the room of its bar at the top of the page, so the page starts under it with no padding of its own, and it stays at the top of the window while the page scrolls (`position: sticky`, `surfaces/band` of the design language). The room is the bar alone, whatever the appearance: the floating bar (`'inline'`) stands its margin lower, over the space under the header, so the page never moves when `appearanceSet` changes the appearance. Sticky holds inside the box of the parent: place the header first in the element that holds the whole page (`body`, or the root of the application); an ancestor with `overflow: hidden` or `auto` that does not scroll the page stops it (`overflow: clip` does not).\n- **Room for the focus**: While a header is on the page, the styles of Magma (`base.css`) stop a field reached with Shift+Tab under the bar, `rhythm/between-fields` lower (`scroll-padding-top`, WCAG 2.4.11), with no script that measures it: the bar is one row, its inset and a button. Content taller than a button (a logo over two lines of text) makes the bar taller than that room.\n- **Clicks**: The box of the header takes no click, only its bar, its backdrop and its menu do: the space around the floating bar and where the bar was before auto-hide hid it leave the page under them usable.\n- **Mobile menu**: A `[slot=\"menu\"]` child is rendered inside a right-positioned modal. When it is absent there is no modal, and the bar receives `menu=\"none\"` whatever `menu` says, so no hamburger shows that would open nothing.\n- **Open/close control**: The menu modal is opened by the bar's hamburger or programmatically via the `setOpened()` method; when the user closes it, `mdsHeaderClose` is emitted (with the bound bar).\n- **Scroll-driven appearance**: When `appearanceSet` names two appearances, `appearance` swaps between them as the page scrolls past its pixel threshold (300 when the third token is omitted).\n- **Auto-hide on scroll**: When `autoHide` is set, scrolling down past that pixel offset hides the bar and scrolling up reveals it again, governed by `threshold` as the directional margin.\n- **Visibility event**: Any change to `visibility` (`'visible'`/`'hidden'`) emits `mdsHeaderVisibilityChange`, whose `detail.visibility` is that string.\n\n#### Properties & Visual Configurations\n\n- **`appearance`** is the bar's current visual mode (`'stripe'` or `'inline'`) and is mutable because the component rewrites it as the page scrolls. `'inline'` floats the bar, at most as wide as the frame of the page (`--magma-width-page`) with its padding outside it, so on a wide window its content stays on the frame, as in `'stripe'`.\n- **`appearanceSet`** is a space/comma-separated string declaring scroll behavior as three tokens: initial appearance, changed appearance, and the `scrollY` pixel threshold (e.g. `\"stripe, inline 200\"`). Use it instead of `appearance` when the header should transform on scroll; `appearance` alone keeps a fixed look.\n- **`autoHide`** is the pixel offset past which the bar starts hiding on downward scroll; leave it unset to keep the bar always present.\n- **`threshold`** tunes how many pixels of opposite-direction scroll are required to flip the auto-hide state - raise it to make hide/show less twitchy.\n- **`menu`** and **`nav`** select on which viewports the hamburger menu and the navigation are shown (`'all'`, `'desktop'`, `'mobile'`, `'none'`); they are relayed to the child bar.\n- **`hideBackdrop`** removes the blurred backdrop layer shown behind the bar when its appearance is `'inline'`.\n- **`visibility`** reflects the current shown/hidden state of the bar and can be set to force it.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-header>` 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#### Minimal Header with Navigation Bar\n\nThe default form. Place the header first in the page and exactly one `<mds-header-bar>` in its default slot: the header stands in the flow and stays put as the page scrolls, so the page starts under the bar with no padding of its own. The bar receives the `menu` and `nav` breakpoint settings from the parent automatically; without a `menu` slot it receives `menu=\"none\"`, so it shows no hamburger that would open nothing.\n\n```html\n<mds-header>\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n    <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n    <mds-button slot=\"nav\" label=\"Registrati\" variant=\"primary\" tone=\"strong\"></mds-button>\n  </mds-header-bar>\n</mds-header>\n```\n\n#### Mobile Menu via the `menu` Slot\n\nProvide a `[slot=\"menu\"]` child to enable the hamburger-triggered side modal. When this slot is filled, the mobile menu icon is shown according to the `menu` breakpoint prop; without it the bar receives `menu=\"none\"` whatever `menu` says, and shows no hamburger.\n\n```html\n<mds-header menu=\"mobile\">\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n    <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n  </mds-header-bar>\n\n  <div slot=\"menu\">\n    <div class=\"p-600\">\n      <mds-button label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n      <mds-button label=\"Registrati\" variant=\"primary\" tone=\"strong\"></mds-button>\n    </div>\n  </div>\n</mds-header>\n```\n\n#### Inline Appearance (Floating Bar)\n\nSet `appearance=\"inline\"` to detach the bar from the top edge and give it a rounded, floating look. A blurred backdrop is shown by default; add `hide-backdrop` to remove it.\n\n```html\n<mds-header appearance=\"inline\">\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n    <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n  </mds-header-bar>\n</mds-header>\n```\n\n#### Scroll-Driven Appearance Change via `appearance-set`\n\nUse `appearance-set` to declare an initial appearance, a changed appearance, and a scroll threshold in pixels. The component swaps `appearance` automatically as the page scrolls past the threshold - no JavaScript needed. Do not combine `appearance-set` with manual writes to `appearance`.\n\n```html\n<!-- Starts inline (floating), switches to stripe (full-width) after 300 px of scroll -->\n<mds-header appearance-set=\"inline, stripe 300\" appearance=\"inline\">\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n  </mds-header-bar>\n</mds-header>\n```\n\n#### Auto-Hide on Downward Scroll\n\nSet `auto-hide` to the pixel offset at which the bar should start hiding when the user scrolls down. The bar reappears when the user scrolls back up. Use `threshold` (default `1`) to control how many pixels of reverse-scroll are required before the bar snaps back - raise it to reduce twitchiness.\n\n```html\n<mds-header auto-hide=\"300\" threshold=\"10\">\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n    <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n  </mds-header-bar>\n</mds-header>\n```\n\n#### Controlling Menu and Nav Breakpoints\n\n`menu` controls on which viewports the hamburger icon is visible; `nav` controls on which viewports the inline navigation is visible. Both accept `'all'`, `'desktop'`, `'mobile'`, or `'none'`.\n\n```html\n<!-- Hamburger shown on all screen sizes; inline nav shown only on desktop -->\n<mds-header menu=\"all\" nav=\"desktop\">\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n    <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n  </mds-header-bar>\n\n  <div slot=\"menu\">\n    <div class=\"p-600\">\n      <mds-button label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n    </div>\n  </div>\n</mds-header>\n```\n\n#### Reacting to Visibility Changes\n\nListen for `mdsHeaderVisibilityChange` to know when the bar is hidden or shown by auto-hide. The event detail carries `visibility` as the string `'visible'` or `'hidden'`.\n\n```html\n<mds-header auto-hide=\"200\" id=\"siteHeader\">\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n  </mds-header-bar>\n</mds-header>\n\n<script>\n  document.getElementById('siteHeader').addEventListener('mdsHeaderVisibilityChange', (e) => {\n    console.log('header visibile:', e.detail.visibility);\n  });\n</script>\n```\n\n#### Reacting to Mobile Menu Close\n\nListen for `mdsHeaderClose` to run cleanup logic when the side modal is dismissed. The event detail carries the bound `<mds-header-bar>` reference.\n\n```html\n<mds-header id=\"siteHeader\">\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n  </mds-header-bar>\n  <div slot=\"menu\">\n    <mds-button label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n  </div>\n</mds-header>\n\n<script>\n  document.getElementById('siteHeader').addEventListener('mdsHeaderClose', (e) => {\n    console.log('menu chiuso, bar:', e.detail.bar);\n  });\n</script>\n```\n\n#### Programmatic Open/Close via `setOpened()`\n\nUse the `setOpened()` method to open or close the mobile menu from JavaScript - for example after a navigation event inside the menu panel.\n\n```html\n<mds-header id=\"siteHeader\">\n  <mds-header-bar>\n    <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n  </mds-header-bar>\n  <div slot=\"menu\">\n    <mds-button label=\"Vai alla home\" id=\"homeBtn\" variant=\"primary\" tone=\"strong\"></mds-button>\n  </div>\n</mds-header>\n\n<script>\n  document.getElementById('homeBtn').addEventListener('click', async () => {\n    window.location.href = '/';\n    await document.getElementById('siteHeader').setOpened(false);\n  });\n</script>\n```\n\n#### Styling Customization\n\nCustomize the header through its public `--mds-header-*` CSS custom properties. Use the semantic color roles via `rgb(var(--magma-<role>))` so dark mode and high-contrast continue to work. `--mds-header-color` also colors the icons, the hamburger of the child `mds-header-bar` included.\n\n```css\nmds-header {\n  --mds-header-color: rgb(var(--magma-text-muted));\n  --mds-header-z-index: 200;\n}\n\n/* Inline appearance: wider floating margin on desktop */\nmds-header[appearance='inline'] {\n  --mds-header-inline-margin: 2rem;\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-header>`. 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 `<mds-header-bar>` Outside `<mds-header>`\n\n`<mds-header-bar>` is a compound child; it must be a direct slot child of `<mds-header>`, which relays breakpoint and appearance state down to it. Using the bar standalone breaks that communication: its hamburger has no menu to open, and appearance and auto-hide do not apply.\n\n```html\n<!-- INCORRECT -->\n<mds-header-bar>\n  <mds-img src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n</mds-header-bar>\n\n<!-- CORRECT -->\n<mds-header>\n  <mds-header-bar>\n    <mds-img src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n  </mds-header-bar>\n</mds-header>\n```\n\n#### Do Not Reserve the Room of the Bar by Hand\n\nThe header stands in the flow at the top of the page and stays put as it scrolls: the page already starts under its bar. A `padding-top` or a margin that made room for a fixed bar doubles it.\n\n```html\n<!-- INCORRECT -->\n<body class=\"pt-1700\">\n  <mds-header>\n    <mds-header-bar>...</mds-header-bar>\n  </mds-header>\n  <main class=\"page-frame\">...</main>\n</body>\n\n<!-- CORRECT -->\n<body>\n  <mds-header>\n    <mds-header-bar>...</mds-header-bar>\n  </mds-header>\n  <main class=\"page-frame\">...</main>\n</body>\n```\n\n#### Do Not Wrap the Header Alone or Place It After the Content\n\nSticky holds inside the box of the parent: a header alone in a wrapper scrolls away with it, and a header placed after the content stands at the end of the page. Make it the first child of the element that holds the whole page.\n\n```html\n<!-- INCORRECT -->\n<div class=\"top\">\n  <mds-header>\n    <mds-header-bar>...</mds-header-bar>\n  </mds-header>\n</div>\n<main class=\"page-frame\">...</main>\n\n<!-- CORRECT -->\n<mds-header>\n  <mds-header-bar>...</mds-header-bar>\n</mds-header>\n<main class=\"page-frame\">...</main>\n```\n\n#### Do Not Drive Scroll Appearance with JavaScript When `appearance-set` Is Available\n\nManually toggling `appearance` on a scroll listener duplicates what `appearance-set` already handles declaratively, and once `appearance-set` is also set the component's own scroll handler rewrites `appearance` on every scroll.\n\n```html\n<!-- INCORRECT -->\n<mds-header id=\"hdr\" appearance=\"inline\">\n  <mds-header-bar>...</mds-header-bar>\n</mds-header>\n<script>\n  window.addEventListener('scroll', () => {\n    document.getElementById('hdr').appearance = window.scrollY > 300 ? 'stripe' : 'inline';\n  });\n</script>\n\n<!-- CORRECT -->\n<mds-header appearance-set=\"inline, stripe 300\" appearance=\"inline\">\n  <mds-header-bar>...</mds-header-bar>\n</mds-header>\n```\n\n#### Do Not Omit the `menu` Slot When Providing a Hamburger-Only Nav\n\nIf no `[slot=\"menu\"]` child is present there is no modal to open, so the bar shows no hamburger icon whatever `menu` says: on the viewports where `nav` hides the navigation, nothing is left to navigate with. Always provide menu content when you want the mobile toggle to be visible.\n\n```html\n<!-- INCORRECT: no hamburger and, on mobile, no navigation -->\n<mds-header menu=\"mobile\">\n  <mds-header-bar>\n    <mds-img src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n    <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n  </mds-header-bar>\n</mds-header>\n\n<!-- CORRECT -->\n<mds-header menu=\"mobile\">\n  <mds-header-bar>\n    <mds-img src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n    <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n  </mds-header-bar>\n  <div slot=\"menu\">\n    <mds-button label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n  </div>\n</mds-header>\n```\n\n#### Do Not Listen to Native `scroll` Events to Detect Auto-Hide State\n\nThe component already emits `mdsHeaderVisibilityChange` when the bar flips between hidden and visible. Attaching a second `scroll` listener couples your code to the same threshold logic and risks running out of sync.\n\n```html\n<!-- INCORRECT -->\n<mds-header auto-hide=\"300\" id=\"hdr\">\n  <mds-header-bar>...</mds-header-bar>\n</mds-header>\n<script>\n  window.addEventListener('scroll', () => {\n    const hidden = window.scrollY > 300;\n    document.body.classList.toggle('header-hidden', hidden);\n  });\n</script>\n\n<!-- CORRECT -->\n<mds-header auto-hide=\"300\" id=\"hdr\">\n  <mds-header-bar>...</mds-header-bar>\n</mds-header>\n<script>\n  document.getElementById('hdr').addEventListener('mdsHeaderVisibilityChange', (e) => {\n    document.body.classList.toggle('header-hidden', e.detail.visibility === 'hidden');\n  });\n</script>\n```\n\n#### Do Not Pierce Shadow DOM to Style the Internal Modal\n\nThe side-modal container is exposed as `::part(menu)` and its stacking is controllable via `--mds-header-z-index`. Do not use `>>>`, `/deep/`, or undocumented internal selectors.\n\n```css\n/* INCORRECT */\nmds-header >>> .menu mds-modal {\n  background: red;\n}\n\n/* CORRECT */\nmds-header {\n  --mds-header-z-index: 500;\n}\nmds-header::part(menu) {\n  /* documented part - safe to target */\n}\n```\n"
      },
      "props": [
        {
          "name": "appearance",
          "type": "string",
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "mutable": true,
          "attr": "appearance",
          "reflectToAttr": true,
          "docs": "Sets the appearance of the header bar element when loaded,\nit can be changed depending on how `appearance-set` attribute is set",
          "docsTags": [
            {
              "name": "default",
              "text": "'stripe'"
            }
          ],
          "default": "'stripe'",
          "values": [
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "appearanceSet",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "appearance-set",
          "reflectToAttr": true,
          "docs": "Sets the appearance of the header bar element depending on the scroll position: three values,\nthe initial appearance, the appearance once scrolled and the `window.scrollY` threshold.\n`stripe, inline 200` starts with the stripe appearance and changes to inline once the page is\nscrolled more than 199 pixels",
          "docsTags": [
            {
              "name": "example",
              "text": "'stripe, inline 200'"
            }
          ],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "autoHide",
          "type": "number | undefined",
          "complexType": {
            "original": "number",
            "resolved": "number | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "auto-hide",
          "reflectToAttr": true,
          "docs": "When the page is scrolled down, the component mds-header-bar is hidden starting\nfrom the `autoHide` attribute's value, then if the page is scrolled up it is shown again",
          "docsTags": [],
          "values": [
            {
              "type": "number"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hideBackdrop",
          "type": "boolean | undefined",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "hide-backdrop",
          "reflectToAttr": true,
          "docs": "Hides the backdrop shown when the mds-header-bar attribute appearace is set to `inline`",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "menu",
          "type": "\"all\" | \"desktop\" | \"mobile\" | \"none\"",
          "complexType": {
            "original": "HeaderBarMenuType",
            "resolved": "\"all\" | \"desktop\" | \"mobile\" | \"none\"",
            "references": {
              "HeaderBarMenuType": {
                "location": "import",
                "path": "@type/header-bar",
                "id": "src/type/header-bar.ts::HeaderBarMenuType",
                "referenceLocation": "HeaderBarMenuType"
              }
            }
          },
          "mutable": false,
          "attr": "menu",
          "reflectToAttr": true,
          "docs": "Sets the visibility type of the hamburger menu of mds-header-bar",
          "docsTags": [
            {
              "name": "default",
              "text": "'mobile'"
            }
          ],
          "default": "'mobile'",
          "values": [
            {
              "value": "all",
              "type": "string"
            },
            {
              "value": "desktop",
              "type": "string"
            },
            {
              "value": "mobile",
              "type": "string"
            },
            {
              "value": "none",
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "nav",
          "type": "\"all\" | \"desktop\" | \"mobile\" | \"none\"",
          "complexType": {
            "original": "HeaderBarNavType",
            "resolved": "\"all\" | \"desktop\" | \"mobile\" | \"none\"",
            "references": {
              "HeaderBarNavType": {
                "location": "import",
                "path": "@type/header-bar",
                "id": "src/type/header-bar.ts::HeaderBarNavType",
                "referenceLocation": "HeaderBarNavType"
              }
            }
          },
          "mutable": false,
          "attr": "nav",
          "reflectToAttr": true,
          "docs": "Sets the visibility type of the navigation menu of mds-header-bar",
          "docsTags": [
            {
              "name": "default",
              "text": "'desktop'"
            }
          ],
          "default": "'desktop'",
          "values": [
            {
              "value": "all",
              "type": "string"
            },
            {
              "value": "desktop",
              "type": "string"
            },
            {
              "value": "mobile",
              "type": "string"
            },
            {
              "value": "none",
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "threshold",
          "type": "number",
          "complexType": {
            "original": "number",
            "resolved": "number",
            "references": {}
          },
          "mutable": false,
          "attr": "threshold",
          "reflectToAttr": true,
          "docs": "Sets the threshold margin to trigger hide or show status of the `mds-header-bar` when the page is scrolled",
          "docsTags": [
            {
              "name": "default",
              "text": "1"
            }
          ],
          "default": "1",
          "values": [
            {
              "type": "number"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "visibility",
          "type": "\"hidden\" | \"visible\" | undefined",
          "complexType": {
            "original": "'hidden' | 'visible'",
            "resolved": "\"hidden\" | \"visible\" | undefined",
            "references": {}
          },
          "mutable": true,
          "attr": "visibility",
          "reflectToAttr": true,
          "docs": "Sets the visibility type of the navigation menu of mds-header-bar",
          "docsTags": [
            {
              "name": "default",
              "text": "'visible'"
            }
          ],
          "default": "'visible'",
          "values": [
            {
              "value": "hidden",
              "type": "string"
            },
            {
              "value": "visible",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [
        {
          "name": "setOpened",
          "returns": {
            "type": "Promise<void>",
            "docs": ""
          },
          "complexType": {
            "signature": "(isOpened?: boolean) => Promise<void>",
            "parameters": [
              {
                "name": "isOpened",
                "type": "boolean",
                "docs": "whether the header should be opened"
              }
            ],
            "references": {
              "Promise": {
                "location": "global",
                "id": "global::Promise"
              }
            },
            "return": "Promise<void>"
          },
          "signature": "setOpened(isOpened?: boolean) => Promise<void>",
          "parameters": [
            {
              "name": "isOpened",
              "type": "boolean",
              "docs": "whether the header should be opened"
            }
          ],
          "docs": "Opens or closes the header.",
          "docsTags": [
            {
              "name": "param",
              "text": "isOpened whether the header should be opened"
            }
          ]
        }
      ],
      "events": [
        {
          "event": "mdsHeaderClose",
          "detail": "MdsHeaderEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsHeaderEventDetail",
            "resolved": "MdsHeaderEventDetail",
            "references": {
              "MdsHeaderEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-header/meta/event-detail.ts::MdsHeaderEventDetail",
                "referenceLocation": "MdsHeaderEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when the component is closed",
          "docsTags": []
        },
        {
          "event": "mdsHeaderVisibilityChange",
          "detail": "MdsHeaderVisibilityEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsHeaderVisibilityEventDetail",
            "resolved": "MdsHeaderVisibilityEventDetail",
            "references": {
              "MdsHeaderVisibilityEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-header/meta/event-detail.ts::MdsHeaderVisibilityEventDetail",
                "referenceLocation": "MdsHeaderVisibilityEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when the component mds-header-bar is shown or hidden",
          "docsTags": []
        }
      ],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-header-backdrop-background-image",
          "annotation": "prop",
          "docs": "Sets the background-image of the backdrop element visibile when the component attribute `appearance` is set to `inline`, by default is shown when mds-pref-consumtion is set to `medium`",
          "visibility": "public"
        },
        {
          "name": "--mds-header-backdrop-blur-strength",
          "annotation": "prop",
          "docs": "Sets the blur strength of the backdrop element visibile when the component attribute `appearance` is set to `inline`, by default is shown when mds-pref-consumtion is set to `high`",
          "visibility": "internal"
        },
        {
          "name": "--mds-header-backdrop-height",
          "annotation": "prop",
          "docs": "Sets the height of the backdrop element visibile when the component attribute `appearance` is set to `inline`",
          "visibility": "internal"
        },
        {
          "name": "--mds-header-backdrop-show",
          "annotation": "prop",
          "docs": "Sets if the backdrop element is visible or not, only visible when the component attribute `appearance` is set to `inline`",
          "visibility": "internal"
        },
        {
          "name": "--mds-header-color",
          "annotation": "prop",
          "docs": "Sets the text color of the header and the color of its icons, the hamburger toggler of `mds-header-bar` included",
          "visibility": "public"
        },
        {
          "name": "--mds-header-hidden-bar-translate-inline",
          "annotation": "prop",
          "docs": "Sets translateY value for the appearance inline `mds-header-bar` element",
          "visibility": "internal"
        },
        {
          "name": "--mds-header-hidden-bar-translate-stripe",
          "annotation": "prop",
          "docs": "Sets translateY value for the appearance stripe `mds-header-bar` element",
          "visibility": "internal"
        },
        {
          "name": "--mds-header-icon-color",
          "annotation": "prop",
          "docs": "Sets the color of the icons of the header, the hamburger toggler of `mds-header-bar` included",
          "visibility": "internal"
        },
        {
          "name": "--mds-header-inline-margin",
          "annotation": "prop",
          "docs": "Sets inline margin of `the mds-header-bar` when attribute `appearance` is set to `inline`",
          "visibility": "public"
        },
        {
          "name": "--mds-header-inline-margin-mobile",
          "annotation": "prop",
          "docs": "Sets inline margin on mobile viewport of `the mds-header-bar` when attribute `appearance` is set to `inline`",
          "visibility": "public"
        },
        {
          "name": "--mds-header-z-index",
          "annotation": "prop",
          "docs": "Sets the z-index of the modal",
          "visibility": "public"
        }
      ],
      "slots": [
        {
          "name": "",
          "docs": "Add `mds-header-bar` element/s."
        },
        {
          "name": "menu",
          "docs": "Put actions and other contents that will be shown as mobile menu. Add `text string`, `HTML elements` or `components` to this slot."
        }
      ],
      "parts": [
        {
          "name": "menu",
          "docs": "The container element of the modal"
        }
      ],
      "states": [],
      "dependents": [],
      "dependencies": [
        "mds-modal"
      ],
      "dependencyGraph": {
        "mds-header": [
          "mds-modal"
        ],
        "mds-modal": [
          "mds-button"
        ],
        "mds-button": [
          "mds-icon",
          "mds-spinner",
          "mds-text"
        ]
      },
      "storybook": "ui-header--docs"
    }
  ]
}
