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

# mds-price-table-list

> `@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-list>` web component is a single pricing-plan column inside the [`<mds-price-table>`](../mds-price-table/AGENTS.md) layout container. It is a compound child that arranges a plan's heading, feature list, price and call-to-action into a consistent card-like structure built entirely from slots - it has no configurable props.

#### Semantic Behavior

- **Compound child**: Designed to sit inside [`<mds-price-table>`](../mds-price-table/AGENTS.md), directly or in its `<mds-price-table-header>`; one instance represents one pricing plan, and several siblings line up to form the comparison table. It is not used standalone.
- **Owns the feature-list child type**: Feature rows are provided as `<mds-price-table-list-item>` elements - they are the intended child type for the list body.
- **Conditional list region**: The feature region and the separator above it render only while feature items are present, items rendered after load included; a plan with no features collapses to header plus footer.
- **No interactive state**: It renders pure structure with no ARIA attributes and no landmark (the feature region is a plain box), no selected/active/disabled state and no emitted events; any interactivity (e.g. the CTA) comes from the components you slot in, such as `<mds-button>` in the `action` slot.
- **Footer composition**: The `price` and `action` slots are grouped together at the bottom of the card.

#### Properties & Visual Configurations

`<mds-price-table-list>` exposes no props; it is a layout-only child whose appearance is driven entirely by what you slot into it. Use the named slots to compose a plan:

- **`header`**: the plan title and supporting description (typically `<mds-text>` elements); rendered at the top.
- **`item`**: the feature rows. `<mds-price-table-list-item>` children assign themselves to it; any other element needs `slot="item"`. There is no default slot: content without a `slot` is not rendered.
- **`price`**: the plan's price, shown in the grouped footer.
- **`action`**: the call-to-action; `<mds-button>` is recommended.

`<mds-price-table-list>` has no public CSS custom property: the style hooks are the `header`, `content` and `footer` shadow parts, while the divider drawn between the header and the feature list keeps the colour the component gives it.

## 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-list--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

## Slots

| Slot | Description |
| --- | --- |
| `action` | Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element. |
| `header` | Add `text string`, `HTML elements` or `components` to this slot. |
| `item` | Add `mds-price-table-list-item` component, `HTML elements` or other `components` to this slot. |
| `price` | Add `text string`, `HTML elements` or `components` to this slot. |

## Parts

| Part | Description |
| --- | --- |
| `content` | Selects the element which wraps elements added via `default slot` |
| `footer` | Selects the element which wraps elements added via `slot="price"` and `slot="action"` |
| `header` | Selects the element which wraps elements added via `slot="header"` |

## CSS custom properties

None is public: its custom property is internal and may change in any release. Style it with its props, its parts and the semantic roles.

## Dependencies

Uses: `mds-separator`.
