<!--
  GENERATED FILE - do not edit by hand.
  Source of truth: src/components/mds-price-table-features/ in the magma monorepo (usage/*.md and the
  component's JSDoc). Regenerated on every stencil build (scripts/component-docs.ts).
-->

# mds-price-table-features

> `@maggioli-design-system/magma` 2.15.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.

The `<mds-price-table-features>` web component is the feature-matrix block of the Magma Design System pricing-table family. It is a compound child of [`<mds-price-table>`](../mds-price-table/AGENTS.md) and renders a table inside its shadow root, turning its slotted rows into the side-by-side feature comparison grid of a pricing table.

#### Semantic Behavior

- **Compound child only**: Must be placed as a direct slot child of `<mds-price-table>`; it is not used standalone. Its own default slot expects only `mds-price-table-features-row` elements, which in turn hold `mds-price-table-features-cell` children.
- **Table wrapper, not a leaf**: The host owns the structural table; the slotted rows and their cells supply the actual row/cell semantics.
- **Optional header band**: A header (shadow part `header`) is rendered only when `label` is set, displaying the title. With no `label` the header is omitted and the table starts at the first row.
- **No state, events, or form association**: The component is purely presentational. Cell content and per-cell rendering (supported / unsupported / text / label) are decided entirely by the child cells.

#### Properties & Visual Configurations

This component has essentially one configurable prop:

- **`label`**: Sets an optional title rendered in the header band above the matrix. Provide it to name the feature group (e.g. a section heading shared across all plan columns); omit it when the matrix should appear without a heading.

All other variation comes from the slotted children rather than from props. Column widths are computed by each `mds-price-table-features-row`, and the visual treatment of each cell is driven by the `type` prop on `mds-price-table-features-cell`. Spacing can be tuned through the public `--mds-price-table-features-padding` (the header band and, by inheritance, every cell), listed in [`AGENTS.md`](AGENTS.md); the dividers of the header band and of the cells keep the colour the component gives them.

## Read next

- [`examples.md`](examples.md) - correct usage, from the most common case
- [`mistakes.md`](mistakes.md) - the wrong forms, each with the right one
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-price-table-price-table-features--docs) - the live examples, in the published Storybook of `main`
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`mistakes.md`](../../../../agents/mistakes.md) - the rules shared by every component

## Props

| Prop | Attribute | Type | Default | Description |
| --- | --- | --- | --- | --- |
| `label` | `label` | `string \| undefined` | - | Sets a header title for the entire table |

## Slots

| Slot | Description |
| --- | --- |
| (default) | Expects to slot `mds-price-table-features-row` component |

## Parts

| Part | Description |
| --- | --- |
| `header` | Selects the HTML element wrapper of label text |

## CSS custom properties

| Property | Description |
| --- | --- |
| `--mds-price-table-features-padding` | Sets the cell padding of the children components |

Only these are public. Its other one is internal: it may change in any release, do not set it.

## Dependencies

Uses: `mds-text`.
