{
  "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-img/mds-img.tsx",
      "encapsulation": "shadow",
      "tag": "mds-img",
      "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": "media - The native `<img>` that shows the picture"
        },
        {
          "name": "category",
          "text": "content"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-img>` web component is the responsive image primitive of the Magma Design System. It wraps the native `<img>` element, adding accessible defaults, a built-in error/fallback state, and data-consumption-aware source selection driven by the user's bandwidth preference.\n\n#### Semantic Behavior\n\n- **Automatic alt fallback**: When `alt` is omitted, it is derived from the trailing filename segment of `src`. An empty `alt` (`alt=\"\"`) marks the image as decorative: the host takes `role=\"presentation\"` and no name, and assistive technologies skip it.\n- **Error state**: A failed load swaps the picture for a broken-image icon plus the `alt` text, emitting `mdsImgLoadError`; changing `src` clears the error and retries.\n- **Load events**: `mdsImgLoadSuccess` and `mdsImgLoadError` both carry the underlying `HTMLImageElement` in their detail, letting consumers read natural dimensions or react to failures.\n- **Consumption-aware loading**: When `srcsetConsumption` is set, the component reads the consumption preference the page applies, the one `mds-pref-consumption` publishes, and follows a change; on a page without that controller it reads the stored choice (the `mdsPrefConsumption` key). It picks the matching source; under the `low` preference the image is deferred behind a \"click to load\" placeholder until the user opts in.\n- **The box before hydration**: on a page that does not render the components on the server, `hydrated.css` gives the host its box before the component hydrates, as a native `<img>` reserves its room before the picture loads: as wide as its container, and with `width` and `height`, as tall as their ratio says. The page below it does not move when the component hydrates. The ratio needs typed `attr()`, in Chromium since 133; in a browser without it the host stays 0 px tall until it hydrates, and a page that needs the room there too gives the host the ratio itself (`aspect-ratio`).\n- **Localized placeholder**: The deferred-load placeholder label is resolved through the shared locale system (el/en/es/it).\n\n#### Properties & Visual Configurations\n\nMost props are pass-throughs to the native image attributes of the same name (`src`, `srcset`, `sizes`, `width`, `height`, `loading`, `decoding`, `crossorigin`, `referrerpolicy`) and behave as in HTML; pick values as you would for a plain `<img>`. `crossorigin`, `referrerpolicy` and `decoding` have no default: unset, the image is fetched without CORS and with the referrer policy of the page, and the browser chooses how to decode it. `loading` defaults to `'lazy'`, so opt into `'eager'` only for above-the-fold imagery.\n\n#### Other behavioral props\n\n- **`srcsetConsumption`** is a comma-separated map of sources tagged `low` / `medium` / `high` (e.g. `\"img-bw.jpg low, img.jpg medium, img@2x.jpg high\"`). Unlike native `srcset`, the bucket is chosen by the stored consumption preference rather than viewport, letting low-bandwidth users save data by deferring or downgrading the image.\n- **`alt`** supply meaningful text for content images, since it doubles as both the accessible name and the visible label in the error and deferred-load states.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-img>` 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 Image with Alt Text\n\nThe canonical form. Always supply a meaningful `alt` value for content images - it doubles as the accessible name and as the visible label in both the error state and the deferred-load placeholder.\n\n```html\n<mds-img src=\"/assets/img/copertina-corso.jpg\" alt=\"Copertina del corso di formazione\"></mds-img>\n```\n\n#### Responsive Image with `srcset` and `sizes`\n\nPass the standard `srcset` and `sizes` attributes exactly as you would on a native `<img>`. The browser picks the best source based on viewport and device pixel ratio.\n\n```html\n<mds-img\n  src=\"/assets/img/hero-800.jpg\"\n  srcset=\"/assets/img/hero-400.jpg 400w, /assets/img/hero-800.jpg 800w, /assets/img/hero-1600.jpg 1600w\"\n  sizes=\"(max-width: 600px) 400px, (max-width: 1200px) 800px, 1600px\"\n  alt=\"Vista panoramica del centro storico\"\n></mds-img>\n```\n\n#### Eager Loading for Above-the-Fold Images\n\n`loading` defaults to `\"lazy\"`. Set it to `\"eager\"` only for images that are immediately visible on page load, such as hero images or content at the top of the first screen.\n\n```html\n<mds-img\n  src=\"/assets/img/hero-principale.jpg\"\n  alt=\"Hero della pagina principale\"\n  loading=\"eager\"\n></mds-img>\n```\n\n#### A Large Picture Lower on the Page\n\n`decoding=\"async\"` lets the browser decode the picture apart from the rest of the page, which then shows without waiting for it. With `width` and `height` the host keeps the room of the picture before the component hydrates and before the picture loads.\n\n```html\n<mds-img\n  src=\"/assets/img/studio.webp\"\n  alt=\"Magma Studio\"\n  width=\"1440\"\n  height=\"900\"\n  decoding=\"async\"\n></mds-img>\n```\n\n#### Consumption-Aware Sources with `srcset-consumption`\n\nUse `srcset-consumption` to serve a different image source depending on the user's bandwidth preference stored via `mds-pref-consumption`. Tag each source with `low`, `medium`, or `high`. Under the `low` preference the image is deferred behind a \"Carica immagine\" placeholder until the user clicks.\n\n```html\n<mds-img\n  src=\"/assets/img/copertina-libro.jpg\"\n  srcset-consumption=\"/assets/img/copertina-bw-1x.jpg low, /assets/img/copertina-1x.jpg medium, /assets/img/copertina-2x.jpg high\"\n  alt=\"Il nuovo codice dei contratti pubblici\"\n></mds-img>\n```\n\n#### Consumption-Aware with Fallback `src`\n\nProvide `src` alongside `srcset-consumption` as the fallback used when a bucket is missing from the consumption map. Here `src` is the high-resolution file; only `low` and `medium` buckets are overridden.\n\n```html\n<mds-img\n  src=\"/assets/img/copertina-2x.jpg\"\n  srcset-consumption=\"/assets/img/copertina-bw-1x.jpg low, /assets/img/copertina-1x.jpg medium\"\n  alt=\"Manuale pratico degli appalti pubblici\"\n></mds-img>\n```\n\n#### Reacting to Load Events\n\nListen to `mdsImgLoadSuccess` and `mdsImgLoadError` to react to image load outcomes. Both events carry the underlying `HTMLImageElement` in `event.detail.image`, allowing you to read natural dimensions or show fallback UI.\n\n```html\n<mds-img\n  id=\"hero\"\n  src=\"/assets/img/hero-principale.jpg\"\n  alt=\"Immagine principale\"\n></mds-img>\n\n<script>\n  document.getElementById('hero').addEventListener('mdsImgLoadSuccess', (event) => {\n    const img = event.detail.image;\n    console.log('Caricata:', img.naturalWidth, 'x', img.naturalHeight);\n  });\n\n  document.getElementById('hero').addEventListener('mdsImgLoadError', (event) => {\n    console.warn('Immagine non disponibile:', event.detail.image.src);\n  });\n</script>\n```\n\n#### Fixed Dimensions\n\nSet `width` and `height` (as string pixel values) to reserve layout space and prevent content reflow during load: they give the inner image its aspect ratio, and the host the same box before the component hydrates. They do not fix the rendered size - the inner image follows the host, which is `display: flex; width: 100%` by default - so size the host with CSS when a fixed pixel size is intended.\n\n```html\n<mds-img\n  src=\"/assets/img/thumbnail.jpg\"\n  alt=\"Anteprima documento\"\n  width=\"320\"\n  height=\"240\"\n></mds-img>\n```\n\n#### Styling Customization\n\nStyle the component through its public `--mds-img-*` CSS custom properties. Use the semantic color roles wrapped in `rgb(var(--magma-<role>))` so dark mode and high-contrast modes keep working.\n\n```css\n.card-copertina mds-img {\n  --mds-img-background: rgb(var(--magma-accent-emphasis-hover));\n  --mds-img-color: rgb(var(--magma-accent-surface));\n}\n```\n\n#### Styling the Inner `<img>` via `::part(media)`\n\nWhen a CSS property must be applied directly to the inner `<img>` element (for example `object-fit` or `border-radius`) use the documented `media` shadow part. This is the only supported way to pierce the shadow boundary.\n\n```css\n.copertina-libro mds-img::part(media) {\n  border-radius: var(--magma-radius-md);\n  object-fit: cover;\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-img>`. 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 Replace `<mds-img>` with a Raw `<img>` Element\n\nUsing a plain `<img>` bypasses the built-in error fallback, consumption-aware loading, and accessible-name defaults that `<mds-img>` provides.\n\n```html\n<!-- INCORRECT -->\n<img src=\"/assets/img/copertina.jpg\" alt=\"Copertina\" loading=\"lazy\">\n\n<!-- CORRECT -->\n<mds-img src=\"/assets/img/copertina.jpg\" alt=\"Copertina\"></mds-img>\n```\n\n#### Do Not Omit `alt` When the Image Conveys Information\n\n`<mds-img>` derives a fallback `alt` from the filename when none is supplied, but a raw filename slug is not a meaningful description. Supply a descriptive `alt` for every content image.\n\n```html\n<!-- INCORRECT -->\n<mds-img src=\"/assets/img/report-annuale-2024.jpg\"></mds-img>\n\n<!-- CORRECT -->\n<mds-img src=\"/assets/img/report-annuale-2024.jpg\" alt=\"Report annuale 2024\"></mds-img>\n```\n\n#### Do Not Listen to the Native `load` or `error` Events\n\nThe inner `<img>` lives in shadow DOM, and its native `load` and `error` events do not bubble, so a listener on the host never receives them. Use the documented `mdsImgLoadSuccess` and `mdsImgLoadError` custom events instead.\n\n```html\n<!-- INCORRECT -->\n<mds-img id=\"foto\" src=\"/assets/img/foto.jpg\" alt=\"Foto\"></mds-img>\n<script>\n  document.getElementById('foto').addEventListener('load', handler);\n  document.getElementById('foto').addEventListener('error', handler);\n</script>\n\n<!-- CORRECT -->\n<mds-img id=\"foto\" src=\"/assets/img/foto.jpg\" alt=\"Foto\"></mds-img>\n<script>\n  document.getElementById('foto').addEventListener('mdsImgLoadSuccess', handler);\n  document.getElementById('foto').addEventListener('mdsImgLoadError', handler);\n</script>\n```\n\n#### Do Not Use `srcset-consumption` Without a Meaningful Bucket Tag\n\nEach entry in `srcset-consumption` must end with `low`, `medium`, or `high`. Entries with any other tag, or none, are ignored with a console warning, leaving that consumption level without a source.\n\n```html\n<!-- INCORRECT -->\n<mds-img\n  srcset-consumption=\"/assets/img/small.jpg 1x, /assets/img/large.jpg 2x\"\n  alt=\"Immagine\"\n></mds-img>\n\n<!-- CORRECT -->\n<mds-img\n  srcset-consumption=\"/assets/img/small.jpg low, /assets/img/medium.jpg medium, /assets/img/large.jpg high\"\n  alt=\"Immagine\"\n></mds-img>\n```\n\n#### Do Not Pierce the Shadow DOM to Style the Inner `<img>`\n\nTargeting internal selectors with `>>>`, `/deep/`, or undocumented class names couples your code to the shadow DOM structure and will break on minor releases. Use the public `--mds-img-*` CSS custom properties for color theming, and the documented `::part(media)` for geometry/object-fit overrides.\n\n```css\n/* INCORRECT */\nmds-img >>> img {\n  border-radius: 8px;\n  object-fit: cover;\n}\n\n/* CORRECT */\nmds-img::part(media) {\n  border-radius: var(--magma-radius-md);\n  object-fit: cover;\n}\n```\n\n#### Do Not Set `loading=\"eager\"` for Every Image\n\n`loading` defaults to `\"lazy\"`, which is the correct behavior for most images. Setting `\"eager\"` on all images forces the browser to download every image immediately, degrading performance. Reserve `\"eager\"` for images that are visible on first paint.\n\n```html\n<!-- INCORRECT -->\n<mds-img src=\"/assets/img/thumbnail-1.jpg\" alt=\"Anteprima 1\" loading=\"eager\"></mds-img>\n<mds-img src=\"/assets/img/thumbnail-2.jpg\" alt=\"Anteprima 2\" loading=\"eager\"></mds-img>\n<mds-img src=\"/assets/img/thumbnail-3.jpg\" alt=\"Anteprima 3\" loading=\"eager\"></mds-img>\n\n<!-- CORRECT -->\n<mds-img src=\"/assets/img/hero.jpg\" alt=\"Hero principale\" loading=\"eager\"></mds-img>\n<mds-img src=\"/assets/img/thumbnail-1.jpg\" alt=\"Anteprima 1\"></mds-img>\n<mds-img src=\"/assets/img/thumbnail-2.jpg\" alt=\"Anteprima 2\"></mds-img>\n```\n"
      },
      "props": [
        {
          "name": "alt",
          "type": "string",
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "mutable": true,
          "attr": "alt",
          "reflectToAttr": true,
          "docs": "Specifies an alternate text for an image. An empty `alt` marks the image as decorative, left\nout by assistive technologies; without `alt` the image is named after its file",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "crossorigin",
          "type": "\"anonymous\" | \"use-credentials\" | undefined",
          "complexType": {
            "original": "CrossoriginType",
            "resolved": "\"anonymous\" | \"use-credentials\" | undefined",
            "references": {
              "CrossoriginType": {
                "location": "import",
                "path": "./meta/types",
                "id": "src/components/mds-img/meta/types.ts::CrossoriginType",
                "referenceLocation": "CrossoriginType"
              }
            }
          },
          "mutable": false,
          "attr": "crossorigin",
          "reflectToAttr": false,
          "docs": "Fetches the image with CORS, as the `crossorigin` attribute of `<img>`: a third-party image\ncan then be used with canvas, if its site allows it. Unset, the image is fetched without CORS",
          "docsTags": [],
          "values": [
            {
              "value": "anonymous",
              "type": "string"
            },
            {
              "value": "use-credentials",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "decoding",
          "type": "\"async\" | \"auto\" | \"sync\" | undefined",
          "complexType": {
            "original": "DecodingType",
            "resolved": "\"async\" | \"auto\" | \"sync\" | undefined",
            "references": {
              "DecodingType": {
                "location": "import",
                "path": "./meta/types",
                "id": "src/components/mds-img/meta/types.ts::DecodingType",
                "referenceLocation": "DecodingType"
              }
            }
          },
          "mutable": false,
          "attr": "decoding",
          "reflectToAttr": false,
          "docs": "How the browser decodes the picture, as the `decoding` attribute of `<img>`: `async` apart\nfrom the rest of the page, which then shows without waiting for it, as a large picture lower\non the page can; `sync` with it; `auto` as the browser chooses. Unset, the browser chooses",
          "docsTags": [],
          "values": [
            {
              "value": "async",
              "type": "string"
            },
            {
              "value": "auto",
              "type": "string"
            },
            {
              "value": "sync",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "height",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "height",
          "reflectToAttr": false,
          "docs": "The height of the picture, in pixels, as the `height` attribute of `<img>`. With `width`, its\nratio gives the host its box before the component hydrates, as a native `<img>` reserves its\nroom before the picture loads (hydrated.css, where the browser supports typed `attr()`)",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "loading",
          "type": "\"eager\" | \"lazy\" | undefined",
          "complexType": {
            "original": "LoadingType",
            "resolved": "\"eager\" | \"lazy\" | undefined",
            "references": {
              "LoadingType": {
                "location": "import",
                "path": "@type/loading",
                "id": "src/type/loading.ts::LoadingType",
                "referenceLocation": "LoadingType"
              }
            }
          },
          "mutable": false,
          "attr": "loading",
          "reflectToAttr": false,
          "docs": "Specifies whether a browser should load an image immediately\nor to defer loading of images until some conditions are met.",
          "docsTags": [
            {
              "name": "default",
              "text": "'lazy'"
            }
          ],
          "default": "'lazy'",
          "values": [
            {
              "value": "eager",
              "type": "string"
            },
            {
              "value": "lazy",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "referrerpolicy",
          "type": "\"no-referrer\" | \"no-referrer-when-downgrade\" | \"origin\" | \"origin-when-cross-origin\" | \"unsafe-url\" | undefined",
          "complexType": {
            "original": "ReferrerpolicyType",
            "resolved": "\"no-referrer\" | \"no-referrer-when-downgrade\" | \"origin\" | \"origin-when-cross-origin\" | \"unsafe-url\" | undefined",
            "references": {
              "ReferrerpolicyType": {
                "location": "import",
                "path": "./meta/types",
                "id": "src/components/mds-img/meta/types.ts::ReferrerpolicyType",
                "referenceLocation": "ReferrerpolicyType"
              }
            }
          },
          "mutable": false,
          "attr": "referrerpolicy",
          "reflectToAttr": false,
          "docs": "Specifies which referrer information to use when fetching an image, as the `referrerpolicy`\nattribute of `<img>`. Unset, the policy of the page applies",
          "docsTags": [],
          "values": [
            {
              "value": "no-referrer",
              "type": "string"
            },
            {
              "value": "no-referrer-when-downgrade",
              "type": "string"
            },
            {
              "value": "origin",
              "type": "string"
            },
            {
              "value": "origin-when-cross-origin",
              "type": "string"
            },
            {
              "value": "unsafe-url",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "sizes",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "sizes",
          "reflectToAttr": false,
          "docs": "One or more strings separated by commas, indicating a set of source sizes.\nhttps://medium.com/@MRWwebDesign/responsive-images-the-sizes-attribute-and-unexpected-image-sizes-882a2eadb6db",
          "docsTags": [
            {
              "name": "example",
              "text": "'(max-width: 600px) 480px, 960px'"
            }
          ],
          "values": [
            {
              "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 path to the image",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "srcset",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "srcset",
          "reflectToAttr": false,
          "docs": "Specifies a list of image files to use in different situations.\nDefines multiple sizes of the same image, allowing the browser\nto select the appropriate image source.",
          "docsTags": [
            {
              "name": "example",
              "text": "'photo-480.jpg 480w, photo-960.jpg 960w'"
            }
          ],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "srcsetConsumption",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "srcset-consumption",
          "reflectToAttr": false,
          "docs": "Specifies a list of image files to use in different situations: comma-separated, each file\nfollowed by the consumption level it is for (`low`, `medium`, `high`), so the component picks\nthe image source that matches the consumption configuration.",
          "docsTags": [
            {
              "name": "example",
              "text": "'photo-bw-1x.jpg low, photo-1x.jpg medium, photo-2x.jpg high'"
            }
          ],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "width",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "width",
          "reflectToAttr": false,
          "docs": "The width of the picture, in pixels, as the `width` attribute of `<img>`. With `height`, its\nratio gives the host its box before the component hydrates",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [],
      "events": [
        {
          "event": "mdsImgLoadError",
          "detail": "MdsImgEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsImgEventDetail",
            "resolved": "MdsImgEventDetail",
            "references": {
              "MdsImgEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-img/meta/event-detail.ts::MdsImgEventDetail",
                "referenceLocation": "MdsImgEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when the image is not loaded",
          "docsTags": []
        },
        {
          "event": "mdsImgLoadSuccess",
          "detail": "MdsImgEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsImgEventDetail",
            "resolved": "MdsImgEventDetail",
            "references": {
              "MdsImgEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-img/meta/event-detail.ts::MdsImgEventDetail",
                "referenceLocation": "MdsImgEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when the image is successfully loaded",
          "docsTags": []
        }
      ],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-img-background",
          "annotation": "prop",
          "docs": "The background color of the image container.",
          "visibility": "public"
        },
        {
          "name": "--mds-img-color",
          "annotation": "prop",
          "docs": "The foreground/text color used inside the image component.",
          "visibility": "public"
        },
        {
          "name": "--mds-img-error-background",
          "annotation": "prop",
          "docs": "The background color shown when the image fails to load.",
          "visibility": "internal"
        },
        {
          "name": "--mds-img-error-color",
          "annotation": "prop",
          "docs": "The text or foreground color shown in the error state.",
          "visibility": "internal"
        },
        {
          "name": "--mds-img-error-icon-color",
          "annotation": "prop",
          "docs": "The icon color used in the error state.",
          "visibility": "internal"
        },
        {
          "name": "--mds-img-icon-color",
          "annotation": "prop",
          "docs": "The color applied to icons displayed within the image element.",
          "visibility": "internal"
        }
      ],
      "slots": [],
      "parts": [
        {
          "name": "media",
          "docs": "The native `<img>` that shows the picture"
        }
      ],
      "states": [],
      "dependents": [
        "mds-avatar",
        "mds-file-preview",
        "mds-push-notification-item"
      ],
      "dependencies": [
        "mds-icon",
        "mds-text",
        "mds-button"
      ],
      "dependencyGraph": {
        "mds-img": [
          "mds-icon",
          "mds-text",
          "mds-button"
        ],
        "mds-button": [
          "mds-icon",
          "mds-spinner",
          "mds-text"
        ],
        "mds-avatar": [
          "mds-img"
        ],
        "mds-file-preview": [
          "mds-img"
        ],
        "mds-push-notification-item": [
          "mds-img"
        ]
      },
      "storybook": "ui-image--docs"
    }
  ]
}
