{
  "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-video-wall/mds-video-wall.tsx",
      "encapsulation": "shadow",
      "tag": "mds-video-wall",
      "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": "- Write browser support missing message here."
        },
        {
          "name": "slot",
          "text": "content - Add video content overlay here, add `text string`, `HTML elements` or `components` to this slot."
        },
        {
          "name": "category",
          "text": "content"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-video-wall>` web component is the Magma Design System's full-bleed background video surface, used to render an autoplaying, looping ambient video behind foreground content. It wraps the native `<video>` element, adding an optional grain/noise overlay and a dedicated content layer for captions or call-to-action overlays.\n\n#### Semantic Behavior\n\n- **Ambient by default**: `autoplay`, `loop` and `muted` are all `true` out of the box, producing a self-contained background loop with no controls and no audio - the configuration browsers require for autoplay to be honored. When the Magma animation preference reduces motion (`pref-animation-reduce`, `mds-pref-animation`, or the OS `prefers-reduced-motion` under `system`), the video is hidden.\n- **Decorative video**: The footage is treated as presentation only; meaningful information must live in the `content` slot, not in the video itself.\n- **Noise overlay**: When `noise` is anything other than `'none'`, a decorative grain layer is rendered above the video; with `noise=\"none\"` the layer is omitted entirely.\n- **Conditional content layer**: The `content` overlay wrapper is shown only while a `slot=\"content\"` child is present, also when it is added after the first render, so an empty overlay never affects layout.\n- **Default slot is fallback text**: The default (unnamed) slot is projected inside the `<video>` element and is intended for the browser-support fallback message shown when video playback is unavailable.\n- **Preload is conditional**: `preload` only takes effect when autoplay is disabled; the browser ignores it while `autoplay` is active.\n\n#### Properties & Visual Configurations\n\nThis component does not use the shared `variant` / `tone` ladders; its props map closely to the underlying native `<video>` attributes plus the Magma-specific overlay.\n\n#### Other behavioral props\n\n- **`noise`** selects the texture/strength of the grain overlay (`'classic'`, `'sharp'`, `'soft'`, `'tv'`); choose the style that matches the intended mood, or `'none'` to disable the effect.\n- **`poster`** is the still image shown before the footage is ready - pick a frame that reads well on its own, since it is the first thing users see.\n- **`preload`** hints how aggressively the file is fetched on page load; relevant only when autoplay is off.\n- **`src`** is the URL of the video file driving the wall.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-video-wall>` 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 Ambient Background\n\nThe simplest and most common use: a full-bleed autoplaying video loop with no extra configuration needed, because `autoplay`, `loop`, and `muted` are all `true` by default.\n\n```html\n<mds-video-wall src=\"/assets/video/ambient.mp4\"></mds-video-wall>\n```\n\n#### Poster Image for Initial Frame\n\nSupply a `poster` image so users see a meaningful still frame before the video loads, or on devices where autoplay is suppressed by the browser.\n\n```html\n<mds-video-wall\n  src=\"/assets/video/ambient.mp4\"\n  poster=\"/assets/video/ambient-preview.webp\"\n></mds-video-wall>\n```\n\n#### Noise Overlay for Texture\n\nAdd a grain overlay with `noise` to give the video a cinematic or retro feel. Choose the texture that fits the intended mood: `classic`, `sharp`, `soft`, or `tv`.\n\n```html\n<!-- Subtle classic grain -->\n<mds-video-wall src=\"/assets/video/ambient.mp4\" noise=\"classic\"></mds-video-wall>\n\n<!-- High-contrast TV static -->\n<mds-video-wall src=\"/assets/video/ambient.mp4\" noise=\"tv\"></mds-video-wall>\n```\n\n#### Foreground Content Overlay via the `content` Slot\n\nPlace any text, HTML elements, or Magma components in the `content` slot to render them centered above the video. The overlay wrapper is shown only while this slot is populated, also when the content is added after the first render, so an empty overlay never affects layout.\n\n```html\n<mds-video-wall src=\"/assets/video/ambient.mp4\" noise=\"soft\">\n  <div slot=\"content\" class=\"text-on-inverse text-center\">\n    <mds-text typography=\"h1\">Benvenuto in Magma</mds-text>\n    <mds-button label=\"Scopri di piu\" variant=\"primary\" tone=\"strong\"></mds-button>\n  </div>\n</mds-video-wall>\n```\n\n#### Browser Fallback via the Default Slot\n\nThe default (unnamed) slot is projected inside the native `<video>` element. Use it for the message displayed when the browser does not support video playback.\n\n```html\n<mds-video-wall src=\"/assets/video/ambient.mp4\">\n  Il tuo browser non supporta la riproduzione video. Aggiorna il browser per continuare.\n</mds-video-wall>\n```\n\n#### Disabling Autoplay with Controlled Preload\n\nWhen the video should not play automatically - for example on a media showcase page - set `autoplay` and `loop` to `false` via a framework binding or a JS property assignment, and use `preload` to control how eagerly the file is fetched. Note: `preload` is ignored by the browser while `autoplay` is active.\n\n```html\n<!--\n  autoplay and loop default to true: turn them off with a framework\n  property binding or the JS properties below.\n  Do NOT write autoplay=\"false\" in plain HTML - see mistakes.md.\n-->\n<mds-video-wall\n  src=\"/assets/video/showcase.mp4\"\n  poster=\"/assets/video/showcase-preview.webp\"\n  preload=\"metadata\"\n></mds-video-wall>\n```\n\n```javascript\n// Disable autoplay and loop via JS property when not using a framework\nconst wall = document.querySelector('mds-video-wall');\nwall.autoplay = false;\nwall.loop = false;\n```\n\n#### CSS Customization via Documented Properties\n\nSet the video fit through the public `--mds-video-wall-video-fit` CSS custom property, on the host element or a parent selector. The noise overlay has no public CSS custom property: pick its texture with the `noise` prop (`classic`, `sharp`, `soft`, `tv`) or turn it off with `noise=\"none\"`.\n\n```css\n/* Contained fit for a non-16:9 source */\n.hero-section mds-video-wall {\n  --mds-video-wall-video-fit: contain;\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-video-wall>`. 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 Use `autoplay=\"false\"` or `loop=\"false\"` to Disable Boolean Props\n\nThese props default to `true`, so removing the attribute keeps them on, and a boolean attribute is never written as the string `\"false\"`: the attribute stays on the element, where attribute selectors and presence checks still read it as set. Set the JS property to `false`, or use a framework property binding, to turn these off.\n\n```html\n<!-- INCORRECT -->\n<mds-video-wall src=\"/assets/video/ambient.mp4\" autoplay=\"false\" loop=\"false\"></mds-video-wall>\n\n<!-- CORRECT (via JS property) -->\n<mds-video-wall src=\"/assets/video/ambient.mp4\"></mds-video-wall>\n<script>\n  const wall = document.querySelector('mds-video-wall');\n  wall.autoplay = false;\n  wall.loop = false;\n</script>\n```\n\n#### Do Not Put Meaningful Content in the Default Slot\n\nThe default slot is projected inside the native `<video>` element and is shown only by browsers that cannot play video. Captions, headlines, CTAs, and any real UI must go in the `content` slot instead.\n\n```html\n<!-- INCORRECT -->\n<mds-video-wall src=\"/assets/video/ambient.mp4\">\n  <mds-text typography=\"h1\">Benvenuto</mds-text>\n</mds-video-wall>\n\n<!-- CORRECT -->\n<mds-video-wall src=\"/assets/video/ambient.mp4\">\n  Il tuo browser non supporta la riproduzione video.\n  <div slot=\"content\">\n    <mds-text typography=\"h1\">Benvenuto</mds-text>\n  </div>\n</mds-video-wall>\n```\n\n#### Do Not Wrap `<mds-video-wall>` in a Raw `<video>` Element\n\n`<mds-video-wall>` already wraps a `<video>` internally. Nesting it inside another `<video>` is invalid HTML, produces no visible output, and makes the fallback slot unreachable.\n\n```html\n<!-- INCORRECT -->\n<video src=\"/assets/video/ambient.mp4\" autoplay muted loop>\n  <mds-video-wall src=\"/assets/video/ambient.mp4\"></mds-video-wall>\n</video>\n\n<!-- CORRECT -->\n<mds-video-wall src=\"/assets/video/ambient.mp4\"></mds-video-wall>\n```\n\n#### Do Not Override Shadow DOM Internals Directly\n\nThe noise overlay is inside the Shadow DOM and has no public CSS custom property. Choose its texture with the `noise` prop (or remove it with `noise=\"none\"`); do not pierce the shadow with `>>>` or undocumented selectors.\n\n```css\n/* INCORRECT */\nmds-video-wall >>> .noise {\n  background-color: rgb(var(--magma-danger-emphasis-hover) / 0.5);\n}\n```\n\n```html\n<!-- CORRECT -->\n<mds-video-wall src=\"/assets/video/ambient.mp4\" noise=\"soft\"></mds-video-wall>\n```\n\n#### Do Not Rely on `preload` While `autoplay` Is Active\n\nThe browser ignores the `preload` hint entirely when `autoplay` is set (which is the default). Only set `preload` after disabling `autoplay` via a JS property or framework binding.\n\n```html\n<!-- INCORRECT (preload is silently ignored because autoplay is true by default) -->\n<mds-video-wall\n  src=\"/assets/video/ambient.mp4\"\n  preload=\"metadata\"\n></mds-video-wall>\n\n<!-- CORRECT: disable autoplay first, then preload is honoured by the browser -->\n<mds-video-wall\n  src=\"/assets/video/showcase.mp4\"\n  poster=\"/assets/video/showcase-preview.webp\"\n  preload=\"metadata\"\n>\n  <!-- set wall.autoplay = false via JS or framework binding -->\n</mds-video-wall>\n```\n"
      },
      "props": [
        {
          "name": "autoplay",
          "type": "boolean",
          "complexType": {
            "original": "true",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "autoplay",
          "reflectToAttr": false,
          "docs": "Specifies that the video will start playing as soon as it is ready",
          "docsTags": [
            {
              "name": "default",
              "text": "true"
            }
          ],
          "default": "true",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "loop",
          "type": "boolean",
          "complexType": {
            "original": "true",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "loop",
          "reflectToAttr": false,
          "docs": "Specifies that the video will start over again, every time it is finished",
          "docsTags": [
            {
              "name": "default",
              "text": "true"
            }
          ],
          "default": "true",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "muted",
          "type": "boolean",
          "complexType": {
            "original": "true",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "muted",
          "reflectToAttr": false,
          "docs": "Specifies that the audio output of the video should be muted",
          "docsTags": [
            {
              "name": "default",
              "text": "true"
            }
          ],
          "default": "true",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "noise",
          "type": "\"classic\" | \"none\" | \"sharp\" | \"soft\" | \"tv\" | undefined",
          "complexType": {
            "original": "NoiseType",
            "resolved": "\"classic\" | \"none\" | \"sharp\" | \"soft\" | \"tv\" | undefined",
            "references": {
              "NoiseType": {
                "location": "import",
                "path": "./meta/types",
                "id": "src/components/mds-video-wall/meta/types.ts::NoiseType",
                "referenceLocation": "NoiseType"
              }
            }
          },
          "mutable": false,
          "attr": "noise",
          "reflectToAttr": false,
          "docs": "Specifies if the video has a noise overlay effect",
          "docsTags": [
            {
              "name": "default",
              "text": "'none'"
            }
          ],
          "default": "'none'",
          "values": [
            {
              "value": "classic",
              "type": "string"
            },
            {
              "value": "none",
              "type": "string"
            },
            {
              "value": "sharp",
              "type": "string"
            },
            {
              "value": "soft",
              "type": "string"
            },
            {
              "value": "tv",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "poster",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "poster",
          "reflectToAttr": false,
          "docs": "Specifies an image to be shown while the video is downloading",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "preload",
          "type": "\"auto\" | \"metadata\" | \"none\" | undefined",
          "complexType": {
            "original": "PreloadType",
            "resolved": "\"auto\" | \"metadata\" | \"none\" | undefined",
            "references": {
              "PreloadType": {
                "location": "import",
                "path": "./meta/types",
                "id": "src/components/mds-video-wall/meta/types.ts::PreloadType",
                "referenceLocation": "PreloadType"
              }
            }
          },
          "mutable": false,
          "attr": "preload",
          "reflectToAttr": false,
          "docs": "Specifies if and how the author thinks the video should be loaded when the page loads. Note: The preload attribute is ignored if autoplay is present",
          "docsTags": [
            {
              "name": "default",
              "text": "'auto'"
            }
          ],
          "default": "'auto'",
          "values": [
            {
              "value": "auto",
              "type": "string"
            },
            {
              "value": "metadata",
              "type": "string"
            },
            {
              "value": "none",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "src",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "src",
          "reflectToAttr": false,
          "docs": "Specifies the URL of the video file",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-video-wall-noise-background-color",
          "annotation": "prop",
          "docs": "The background color applied to the noise layer of the video wall.",
          "visibility": "internal"
        },
        {
          "name": "--mds-video-wall-noise-background-size",
          "annotation": "prop",
          "docs": "The background-size used for the noise texture.",
          "visibility": "internal"
        },
        {
          "name": "--mds-video-wall-noise-filter",
          "annotation": "prop",
          "docs": "The CSS filter applied to the noise layer (e.g., blur, brightness).",
          "visibility": "internal"
        },
        {
          "name": "--mds-video-wall-video-fit",
          "annotation": "prop",
          "docs": "Defines how the video content should scale to fit its container (e.g., cover, contain).",
          "visibility": "public"
        }
      ],
      "slots": [
        {
          "name": "",
          "docs": "Write browser support missing message here."
        },
        {
          "name": "content",
          "docs": "Add video content overlay here, add `text string`, `HTML elements` or `components` to this slot."
        }
      ],
      "parts": [],
      "states": [],
      "dependents": [],
      "dependencies": [],
      "dependencyGraph": {},
      "storybook": "ui-video-wall--docs"
    }
  ]
}
