{
  "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-quote/mds-quote.tsx",
      "encapsulation": "shadow",
      "tag": "mds-quote",
      "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."
        },
        {
          "name": "slot",
          "text": "author - Add `text string`, `HTML elements` or `components` to this slot."
        },
        {
          "name": "category",
          "text": "content"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-quote>` web component is the Magma Design System primitive for rendering a stylized blockquote: it wraps quoted text in decorative typographic quotation marks (`❝ ... ❞`) and exposes an optional attribution slot, replacing a hand-styled `<blockquote>` + citation markup.\n\n#### Semantic Behavior\n\n- **Default slot is the quote body**: the unnamed slot holds the quoted text (string, HTML, or components) and is wrapped between the opening `❝` and closing `❞` glyphs.\n- **`author` named slot**: holds the attribution (text, HTML, or components) and renders directly beneath the quote body.\n- **Selection semantics**: selecting the quote body selects the whole quotation, while the decorative quote-mark glyphs stay out of any copied text.\n- **Heading semantics vs. visual size are decoupled**: the rendered tag and the applied typography are driven by two independent props, so the component can carry the correct document outline level without forcing a matching visual scale.\n\n#### Properties & Visual Configurations\n\n- **`tag`** sets the actual HTML heading element emitted for the quote body (`h1`-`h6`); pick the value that reflects the quote's real position in the document outline, independent of how large it should look.\n- **`typography`** sets the visual type scale applied to both the quote body and the decorative marks; choose it for visual weight, since it can differ from `tag`. Beyond the heading scales it also accepts `'action'` for cases where the quote should adopt the action type style rather than a heading scale.\n\n#### Notes\n\n`<mds-quote>` is a purely presentational component: it has no `variant` / `tone` ladder, no state props, no events, and no form association. The shared system rules live in [`agents/conventions.md`](../../../../agents/conventions.md).\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-quote>` 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 Quote with Attribution\n\nThe minimal form: slot the quoted text into the default slot and slot the attribution into the `author` slot. Both slots accept plain text, HTML, or components.\n\n```html\n<mds-quote tag=\"h3\" typography=\"h3\">\n  Chi smette di migliorare, smette di essere buono.\n  <mds-author slot=\"author\">\n    <mds-text typography=\"h6\">Philip Rosenthal</mds-text>\n    <mds-text typography=\"caption\">Imprenditore</mds-text>\n  </mds-author>\n</mds-quote>\n```\n\n#### Quote Without Attribution\n\nOmit the `author` slot entirely when no attribution is needed. The decorative quotation marks still render correctly.\n\n```html\n<mds-quote tag=\"h4\" typography=\"h4\">\n  La semplicita' e' la massima sofisticazione.\n</mds-quote>\n```\n\n#### Decoupling Semantic Tag from Visual Scale\n\nSet `tag` to the heading level that correctly represents the quote in the document outline, and `typography` independently for the visual weight that suits the design. A large pull-quote may be visually `h2` but logically only an `h4` in the hierarchy.\n\n```html\n<!-- visually prominent (h2 scale) but semantically an h4 in the outline -->\n<mds-quote tag=\"h4\" typography=\"h2\">\n  Il futuro appartiene a chi crede nella bellezza dei propri sogni.\n  <mds-author slot=\"author\">\n    <mds-text typography=\"h6\">Eleanor Roosevelt</mds-text>\n  </mds-author>\n</mds-quote>\n```\n\n#### Using the `action` Typography Scale\n\nSet `typography=\"action\"` when the quote should adopt the action type style rather than any heading scale - for instance inside a callout card or a narrow testimonial widget.\n\n```html\n<mds-quote tag=\"h5\" typography=\"action\">\n  Ogni grande impresa inizia con un piccolo passo coraggioso.\n  <mds-author slot=\"author\">\n    <mds-text typography=\"caption\">Autore sconosciuto</mds-text>\n  </mds-author>\n</mds-quote>\n```\n\n#### Full Author Attribution with Avatar\n\nThe `author` slot accepts rich compound components. Use [`mds-author`](../mds-author/AGENTS.md) with a nested [`mds-avatar`](../mds-avatar/AGENTS.md) for a complete testimonial block.\n\n```html\n<mds-quote tag=\"h5\" typography=\"h5\">\n  Un programmatore e' una macchina che trasforma il caffe' in codice.\n  <mds-author slot=\"author\">\n    <mds-avatar\n      slot=\"avatar\"\n      initials=\"PW\"\n      src=\"./paul-washam.webp\"\n    ></mds-avatar>\n    <mds-text typography=\"h6\">Paul Washam</mds-text>\n    <mds-text typography=\"caption\">Software engineer</mds-text>\n  </mds-author>\n</mds-quote>\n```\n\n#### Composing Inside a Card\n\nPlace `<mds-quote>` inside [`mds-card-content`](../mds-card-content/AGENTS.md) to embed a testimonial in a card layout. Use a smaller typography scale to fit the card's visual hierarchy.\n\n```html\n<mds-card>\n  <mds-card-content slot=\"content\">\n    <mds-quote tag=\"h6\" typography=\"h6\">\n      La qualita' non e' mai un caso; e' sempre il risultato di uno sforzo intelligente.\n      <mds-author slot=\"author\">\n        <mds-text typography=\"h6\">John Ruskin</mds-text>\n        <mds-text typography=\"caption\">Critico d'arte</mds-text>\n      </mds-author>\n    </mds-quote>\n  </mds-card-content>\n</mds-card>\n```\n\n#### Color Customization via Host Styles\n\n`<mds-quote>` inherits `color` from its host context. Override the text color by setting a semantic color role on the host element. Always use `rgb(var(--magma-<role>))` so dark mode, named themes and high-contrast modes keep working.\n\n```css\n.featured-testimonial mds-quote {\n  color: rgb(var(--magma-text-default));\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-quote>`. 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-quote>` with a Raw `<blockquote>`\n\nHand-rolling a blockquote loses the decorative quotation marks, the decoupled typography system, and the high-contrast preference support the component provides.\n\n```html\n<!-- INCORRECT -->\n<blockquote>\n  <p>La semplicita' e' la massima sofisticazione.</p>\n  <cite>Leonardo da Vinci</cite>\n</blockquote>\n\n<!-- CORRECT -->\n<mds-quote tag=\"h4\" typography=\"h4\">\n  La semplicita' e' la massima sofisticazione.\n  <mds-author slot=\"author\">\n    <mds-text typography=\"h6\">Leonardo da Vinci</mds-text>\n  </mds-author>\n</mds-quote>\n```\n\n#### Do Not Put Attribution in the Default Slot\n\nThe default slot is the quote body; attribution placed there renders as quoted text and is wrapped between the opening and closing quotation glyphs. Use the `author` named slot for attribution.\n\n```html\n<!-- INCORRECT -->\n<mds-quote tag=\"h4\" typography=\"h4\">\n  L'innovazione distingue il leader dal seguace.\n  Steve Jobs, Apple\n</mds-quote>\n\n<!-- CORRECT -->\n<mds-quote tag=\"h4\" typography=\"h4\">\n  L'innovazione distingue il leader dal seguace.\n  <mds-author slot=\"author\">\n    <mds-text typography=\"h6\">Steve Jobs</mds-text>\n    <mds-text typography=\"caption\">Apple</mds-text>\n  </mds-author>\n</mds-quote>\n```\n\n#### Do Not Omit `tag` and Rely on the Default Heading Level\n\nThe default `tag` is `h3`, which may be semantically wrong for the document outline. Always set `tag` explicitly to the level that matches the quote's real position in the heading hierarchy.\n\n```html\n<!-- INCORRECT - relies on h3 default regardless of page structure -->\n<mds-quote typography=\"h5\">\n  Ogni problema e' un'opportunita' travestita da difficolta'.\n</mds-quote>\n\n<!-- CORRECT - tag reflects the actual outline position -->\n<mds-quote tag=\"h5\" typography=\"h5\">\n  Ogni problema e' un'opportunita' travestita da difficolta'.\n</mds-quote>\n```\n\n#### Do Not Conflate `tag` and `typography`\n\n`tag` controls the semantic heading element; `typography` controls the visual scale. Setting only one and assuming the other adjusts automatically is wrong - they are independent props and must both be set intentionally.\n\n```html\n<!-- INCORRECT - sets tag but leaves typography at its h3 default,\n     producing an h5 semantic element that looks like an h3 -->\n<mds-quote tag=\"h5\">\n  Il coraggio non e' assenza di paura, ma la decisione che qualcosa e' piu' importante della paura.\n</mds-quote>\n\n<!-- CORRECT - both props set to the intended values -->\n<mds-quote tag=\"h5\" typography=\"h5\">\n  Il coraggio non e' assenza di paura, ma la decisione che qualcosa e' piu' importante della paura.\n</mds-quote>\n```\n\n#### Do Not Use an Invalid `typography` Value\n\n`typography` accepts only `action`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`. Passing any other value (e.g. a body or caption scale) silently matches no type style: the quote renders with no type scale at all.\n\n```html\n<!-- INCORRECT - \"body\" is not a valid TypographyTitleType value -->\n<mds-quote tag=\"h5\" typography=\"body\">\n  Il talento vince le partite, ma il lavoro di squadra vince i campionati.\n</mds-quote>\n\n<!-- CORRECT - use a valid title typography scale -->\n<mds-quote tag=\"h5\" typography=\"h5\">\n  Il talento vince le partite, ma il lavoro di squadra vince i campionati.\n</mds-quote>\n```\n\n#### Do Not Wrap `<mds-quote>` in a Native `<figure>` or `<cite>` to Add Attribution\n\nAdding a `<figure>` / `<figcaption>` or `<cite>` wrapper around or inside the component to bolt on attribution is redundant and leaves the attribution outside the component's layout. The `author` slot is the right extension point.\n\n```html\n<!-- INCORRECT -->\n<figure>\n  <mds-quote tag=\"h4\" typography=\"h4\">\n    La creativita' e' l'intelligenza che si diverte.\n  </mds-quote>\n  <figcaption>Albert Einstein</figcaption>\n</figure>\n\n<!-- CORRECT -->\n<mds-quote tag=\"h4\" typography=\"h4\">\n  La creativita' e' l'intelligenza che si diverte.\n  <mds-author slot=\"author\">\n    <mds-text typography=\"h6\">Albert Einstein</mds-text>\n  </mds-author>\n</mds-quote>\n```\n"
      },
      "props": [
        {
          "name": "tag",
          "type": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
          "complexType": {
            "original": "TypographyHeadingTagType",
            "resolved": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
            "references": {
              "TypographyHeadingTagType": {
                "location": "import",
                "path": "@type/text",
                "id": "src/type/text.ts::TypographyHeadingTagType",
                "referenceLocation": "TypographyHeadingTagType"
              }
            }
          },
          "mutable": false,
          "attr": "tag",
          "reflectToAttr": false,
          "docs": "Specifies the tag the element",
          "docsTags": [
            {
              "name": "default",
              "text": "'h3'"
            }
          ],
          "default": "'h3'",
          "values": [
            {
              "value": "h1",
              "type": "string"
            },
            {
              "value": "h2",
              "type": "string"
            },
            {
              "value": "h3",
              "type": "string"
            },
            {
              "value": "h4",
              "type": "string"
            },
            {
              "value": "h5",
              "type": "string"
            },
            {
              "value": "h6",
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "typography",
          "type": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
          "complexType": {
            "original": "TypographyTitleType",
            "resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
            "references": {
              "TypographyTitleType": {
                "location": "import",
                "path": "@type/typography",
                "id": "src/type/typography.ts::TypographyTitleType",
                "referenceLocation": "TypographyTitleType"
              }
            }
          },
          "mutable": false,
          "attr": "typography",
          "reflectToAttr": false,
          "docs": "Specifies the font typography of the element",
          "docsTags": [
            {
              "name": "default",
              "text": "'h3'"
            }
          ],
          "default": "'h3'",
          "values": [
            {
              "value": "action",
              "type": "string"
            },
            {
              "value": "h1",
              "type": "string"
            },
            {
              "value": "h2",
              "type": "string"
            },
            {
              "value": "h3",
              "type": "string"
            },
            {
              "value": "h4",
              "type": "string"
            },
            {
              "value": "h5",
              "type": "string"
            },
            {
              "value": "h6",
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [],
      "slots": [
        {
          "name": "",
          "docs": "Add `text string`, `HTML elements` or `components` to this slot."
        },
        {
          "name": "author",
          "docs": "Add `text string`, `HTML elements` or `components` to this slot."
        }
      ],
      "parts": [],
      "states": [],
      "dependents": [],
      "dependencies": [
        "mds-text"
      ],
      "dependencyGraph": {
        "mds-quote": [
          "mds-text"
        ]
      },
      "storybook": "ui-quote--docs"
    }
  ]
}
