{
  "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-price-table-header/mds-price-table-header.tsx",
      "encapsulation": "shadow",
      "tag": "mds-price-table-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": "slot",
          "text": "- Add `text string`, `HTML elements` or `components` to this slot."
        },
        {
          "name": "parent",
          "text": "mds-price-table"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-price-table-header>` web component is the layout child that forms the top band of a [`<mds-price-table>`](../mds-price-table/AGENTS.md), aligning an optional leading title cell with the per-plan `<mds-price-table-list>` columns so the header sits in the same column grid as the feature rows below it. It is a pure presentational wrapper.\n\n#### Semantic Behavior\n\n- **Compound child only**: Must be placed as a direct slot child of `<mds-price-table>`; it is not used standalone, and it expects its own children to be the price-plan columns (typically a leading `<mds-text>` title plus one `<mds-price-table-list>` per plan) so they line up with the `<mds-price-table-features>` columns underneath.\n- **Auto-fit column grid**: Every direct child becomes an equal-width column by default.\n- **Layout overridden via classes**: Because the column count is content-driven, the explicit per-breakpoint layout (e.g. `tablet:grid-cols-3 desktop:grid-cols-4`, plus `col-span` on a leading title) is applied through utility classes on the host and its children rather than through props.\n- **Single default slot**: Passes content straight through; it has no named slots, no internal ARIA role, no state, and emits no events.\n\n#### Properties & Visual Configurations\n\nThis component exposes no configurable props. It is a layout-only child: its sole job is to project its slotted children into an equal-column grid that matches the rest of the price table. Control the arrangement through CSS utility classes (grid column counts per breakpoint, column spans on the leading title) on the host and on the slotted elements, not through component attributes. See the shared compound-component and layout conventions in [`agents/conventions.md`](../../../../agents/conventions.md).\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-price-table-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#### Standard Three-Plan Header\n\nThe most common form: a leading title column followed by one [`<mds-price-table-list>`](../mds-price-table-list/AGENTS.md) per plan. Apply responsive grid-column utilities directly on the host to align the header with the feature rows below it.\n\n```html\n<mds-price-table-header class=\"tablet:grid-cols-3 desktop:grid-cols-4\">\n  <mds-text typography=\"h1\" class=\"tablet:col-span-3 desktop:col-span-1 desktop:py-600\">\n    Scegli il piano per te\n  </mds-text>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Piano Base</mds-text>\n    <mds-text typography=\"detail\" slot=\"header\">\n      Ideale per liberi professionisti.\n    </mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">49 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia ora</mds-button>\n  </mds-price-table-list>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Piano Professional</mds-text>\n    <mds-text typography=\"detail\" slot=\"header\">\n      Per studi di medie dimensioni.\n    </mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">99 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia ora</mds-button>\n  </mds-price-table-list>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Piano Enterprise</mds-text>\n    <mds-text typography=\"detail\" slot=\"header\">\n      Soluzioni su misura per grandi organizzazioni.\n    </mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">149 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia ora</mds-button>\n  </mds-price-table-list>\n</mds-price-table-header>\n```\n\n#### Header Without a Leading Title Column\n\nWhen the layout does not need a title column on the left, omit the leading element and let the auto-fit grid divide space equally among the plan columns. Update the grid-column count to match the number of plans.\n\n```html\n<mds-price-table-header class=\"tablet:grid-cols-2 desktop:grid-cols-3\">\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Starter</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">Gratuito</mds-text>\n    <mds-button slot=\"action\" variant=\"primary\" tone=\"strong\">Registrati</mds-button>\n  </mds-price-table-list>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Business</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">79 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"primary\" tone=\"strong\">Abbonati</mds-button>\n  </mds-price-table-list>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Enterprise</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">Su richiesta</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Contattaci</mds-button>\n  </mds-price-table-list>\n</mds-price-table-header>\n```\n\n#### Highlighted Plan Column\n\nApply a background utility class directly to an [`<mds-price-table-list>`](../mds-price-table-list/AGENTS.md) child to visually emphasize a recommended plan. No extra wrapper is needed.\n\n```html\n<mds-price-table-header class=\"tablet:grid-cols-3 desktop:grid-cols-4\">\n  <mds-text typography=\"h1\" class=\"tablet:col-span-3 desktop:col-span-1\">\n    Trova il piano giusto\n  </mds-text>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Base</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">29 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia</mds-button>\n  </mds-price-table-list>\n\n  <!-- Recommended plan - highlighted via background utility -->\n  <mds-price-table-list class=\"bg-label-amaranth-10\">\n    <mds-text typography=\"h5\" slot=\"header\">Consigliato</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">69 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"primary\" tone=\"strong\">Inizia</mds-button>\n  </mds-price-table-list>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Premium</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">129 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia</mds-button>\n  </mds-price-table-list>\n</mds-price-table-header>\n```\n\n#### Matching Column Count to Feature Rows\n\nWhen combined with [`<mds-price-table-features>`](../mds-price-table-features/AGENTS.md) below the header, give every feature row as many cells as the header has columns (one `label` cell for the title column, then one cell per plan): each row divides its width equally among its cells. Grid-column classes have no effect on `<mds-price-table-features>`, which renders a table.\n\n```html\n<mds-price-table>\n  <mds-price-table-header class=\"tablet:grid-cols-3 desktop:grid-cols-4\">\n    <mds-text typography=\"h1\" class=\"tablet:col-span-3 desktop:col-span-1\">\n      Prezzi e funzionalita\n    </mds-text>\n    <mds-price-table-list>\n      <mds-text typography=\"h5\" slot=\"header\">Base</mds-text>\n      <mds-text typography=\"h2\" slot=\"price\">49 EUR</mds-text>\n      <mds-button slot=\"action\" variant=\"dark\">Abbonati</mds-button>\n    </mds-price-table-list>\n    <mds-price-table-list>\n      <mds-text typography=\"h5\" slot=\"header\">Pro</mds-text>\n      <mds-text typography=\"h2\" slot=\"price\">99 EUR</mds-text>\n      <mds-button slot=\"action\" variant=\"dark\">Abbonati</mds-button>\n    </mds-price-table-list>\n    <mds-price-table-list>\n      <mds-text typography=\"h5\" slot=\"header\">Enterprise</mds-text>\n      <mds-text typography=\"h2\" slot=\"price\">199 EUR</mds-text>\n      <mds-button slot=\"action\" variant=\"dark\">Contattaci</mds-button>\n    </mds-price-table-list>\n  </mds-price-table-header>\n\n  <mds-price-table-features>\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Utenti</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">10</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">20</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">Illimitati</mds-price-table-features-cell>\n    </mds-price-table-features-row>\n  </mds-price-table-features>\n</mds-price-table>\n```\n\n#### Mobile Collapse with Responsive Classes\n\nOn narrow viewports, collapse the multi-column header into a single-column stack using a `max-mobile:grid-cols-1` utility. The leading title then occupies the full row before the plan cards.\n\n```html\n<mds-price-table-header\n  class=\"max-mobile:grid-cols-1 tablet:grid-cols-3 desktop:grid-cols-4\"\n>\n  <mds-text typography=\"h1\" class=\"tablet:col-span-3 desktop:col-span-1\">\n    Confronta i piani\n  </mds-text>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Individuale</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">19 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Scegli</mds-button>\n  </mds-price-table-list>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Team</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">49 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Scegli</mds-button>\n  </mds-price-table-list>\n\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" slot=\"header\">Azienda</mds-text>\n    <mds-text typography=\"h2\" slot=\"price\">149 EUR / mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Scegli</mds-button>\n  </mds-price-table-list>\n</mds-price-table-header>\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-price-table-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 Use Outside `<mds-price-table>`\n\n`<mds-price-table-header>` is a structural child of [`<mds-price-table>`](../mds-price-table/AGENTS.md). Used standalone it still lays out its columns, but it is cut off from the feature matrix it is meant to align with: `<mds-price-table>` is what stacks the header above the feature rows.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-header class=\"tablet:grid-cols-3\">\n  <mds-price-table-list>...</mds-price-table-list>\n</mds-price-table-header>\n\n<!-- CORRECT -->\n<mds-price-table>\n  <mds-price-table-header class=\"tablet:grid-cols-3\">\n    <mds-price-table-list>...</mds-price-table-list>\n  </mds-price-table-header>\n</mds-price-table>\n```\n\n#### Do Not Add Extra Wrapper Elements Around Plan Columns\n\nThe auto-fit grid counts direct children; adding `<div>` wrappers around plan cards breaks the equal-column distribution and misaligns the header with feature rows.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-header class=\"tablet:grid-cols-3\">\n  <div class=\"plans\">\n    <mds-price-table-list>...</mds-price-table-list>\n    <mds-price-table-list>...</mds-price-table-list>\n  </div>\n</mds-price-table-header>\n\n<!-- CORRECT -->\n<mds-price-table-header class=\"tablet:grid-cols-3\">\n  <mds-price-table-list>...</mds-price-table-list>\n  <mds-price-table-list>...</mds-price-table-list>\n  <mds-price-table-list>...</mds-price-table-list>\n</mds-price-table-header>\n```\n\n#### Do Not Set Column Layout With Inline Styles\n\nThe column count is expressed through Magma utility classes, not inline `style` attributes. Inline styles bypass the responsive utility cascade and are impossible to override with breakpoint tokens.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-header style=\"grid-template-columns: 1fr 1fr 1fr;\">\n  ...\n</mds-price-table-header>\n\n<!-- CORRECT -->\n<mds-price-table-header class=\"tablet:grid-cols-3 desktop:grid-cols-4\">\n  ...\n</mds-price-table-header>\n```\n\n#### Do Not Mismatch Column Count Between Header and Feature Section\n\nEach `<mds-price-table-features-row>` divides its width equally among its cells, while the header lays its children on its grid columns. If a feature row has fewer or more cells than the header has columns, plan columns do not line up. Grid-column classes on [`<mds-price-table-features>`](../mds-price-table-features/AGENTS.md) change nothing: it renders a table.\n\n```html\n<!-- INCORRECT: header has 4 columns, each feature row has 3 cells -->\n<mds-price-table>\n  <mds-price-table-header class=\"desktop:grid-cols-4\">\n    <mds-text typography=\"h1\">Piani</mds-text>\n    <mds-price-table-list>...</mds-price-table-list>\n    <mds-price-table-list>...</mds-price-table-list>\n    <mds-price-table-list>...</mds-price-table-list>\n  </mds-price-table-header>\n  <mds-price-table-features>\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Utenti</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">10</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">20</mds-price-table-features-cell>\n    </mds-price-table-features-row>\n  </mds-price-table-features>\n</mds-price-table>\n\n<!-- CORRECT: one label cell plus one cell per plan, as many as the header columns -->\n<mds-price-table>\n  <mds-price-table-header class=\"tablet:grid-cols-3 desktop:grid-cols-4\">\n    <mds-text typography=\"h1\" class=\"tablet:col-span-3 desktop:col-span-1\">Piani</mds-text>\n    <mds-price-table-list>...</mds-price-table-list>\n    <mds-price-table-list>...</mds-price-table-list>\n    <mds-price-table-list>...</mds-price-table-list>\n  </mds-price-table-header>\n  <mds-price-table-features>\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Utenti</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">10</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">20</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">Illimitati</mds-price-table-features-cell>\n    </mds-price-table-features-row>\n  </mds-price-table-features>\n</mds-price-table>\n```\n\n#### Do Not Place Non-Plan Content in the Header Without a Spanning Utility\n\nThe component places every direct child in its own equal-width column. A leading title or label that should span multiple columns must carry the appropriate `col-span` utility; without it, it shrinks to one narrow column and pushes the plan cards out of alignment.\n\n```html\n<!-- INCORRECT: leading title takes one column, disrupting plan alignment -->\n<mds-price-table-header class=\"desktop:grid-cols-4\">\n  <mds-text typography=\"h1\">Scegli il piano</mds-text>\n  <mds-price-table-list>...</mds-price-table-list>\n  <mds-price-table-list>...</mds-price-table-list>\n  <mds-price-table-list>...</mds-price-table-list>\n</mds-price-table-header>\n\n<!-- CORRECT: on tablet the title spans the full row; on desktop it takes one column -->\n<mds-price-table-header class=\"tablet:grid-cols-3 desktop:grid-cols-4\">\n  <mds-text\n    typography=\"h1\"\n    class=\"tablet:col-span-3 desktop:col-span-1 desktop:py-600\"\n  >\n    Scegli il piano\n  </mds-text>\n  <mds-price-table-list>...</mds-price-table-list>\n  <mds-price-table-list>...</mds-price-table-list>\n  <mds-price-table-list>...</mds-price-table-list>\n</mds-price-table-header>\n```\n"
      },
      "props": [],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [],
      "slots": [
        {
          "name": "",
          "docs": "Add `text string`, `HTML elements` or `components` to this slot."
        }
      ],
      "parts": [],
      "states": [],
      "dependents": [],
      "dependencies": [],
      "dependencyGraph": {},
      "storybook": "ui-price-table-price-table-header--docs"
    }
  ]
}
