<!--
  GENERATED FILE - do not edit by hand.
  Source of truth: src/components/mds-price-table-features-cell/usage/ in the magma monorepo.
-->

# mds-price-table-features-cell - examples

> The API of this component: [`AGENTS.md`](AGENTS.md).

Correct and idiomatic ways to use the `<mds-price-table-features-cell>` 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).

#### Supported / Unsupported Icon Cells

The most common use: a boolean "feature included" or "feature not included" column. Use `type="supported"` or `type="unsupported"` and leave the slot empty - the component renders the built-in check-circle or horizontal-rule icon automatically.

```html
<mds-price-table-features-row>
  <mds-price-table-features-cell type="label">Accesso API</mds-price-table-features-cell>
  <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
  <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
  <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
</mds-price-table-features-row>
```

#### Label Cell for the Row Feature Name

Place `type="label"` on the first cell of every row to mark it as the feature descriptor. The slot accepts plain text or a combination of text and a help tooltip component.

```html
<mds-price-table-features-row>
  <mds-price-table-features-cell type="label">
    Larghezza di banda
    <mds-help disable-auto-placement placement="top">
      Calcolata per singolo utente attivo al mese.
    </mds-help>
  </mds-price-table-features-cell>
  <mds-price-table-features-cell>10 GB</mds-price-table-features-cell>
  <mds-price-table-features-cell>50 GB</mds-price-table-features-cell>
  <mds-price-table-features-cell>Illimitata</mds-price-table-features-cell>
</mds-price-table-features-row>
```

#### Text Cell for Short Descriptive Values (default)

`type="text"` (the default) wraps slot content in `<mds-text typography="detail">`, applying the table's standard detail typography. Use it for concise values such as storage limits or user counts.

```html
<mds-price-table-features-row>
  <mds-price-table-features-cell type="label">Utenti inclusi</mds-price-table-features-cell>
  <mds-price-table-features-cell type="text">5</mds-price-table-features-cell>
  <mds-price-table-features-cell type="text">25</mds-price-table-features-cell>
  <mds-price-table-features-cell>Illimitati</mds-price-table-features-cell>
</mds-price-table-features-row>
```

#### Help Tooltip for an Icon Row

Even when the icon speaks for itself, a help tooltip can add context. A `supported` / `unsupported` cell renders only its icon and drops any slotted content, so a tooltip slotted there never shows: put the `<mds-help>` in the row's `label` cell.

```html
<mds-price-table-features-row>
  <mds-price-table-features-cell type="label">
    Supporto dedicato
    <mds-help disable-auto-placement placement="top">
      Disponibile nei giorni feriali dalle 9 alle 18, non incluso nel piano base.
    </mds-help>
  </mds-price-table-features-cell>
  <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
  <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
</mds-price-table-features-row>
```

#### Custom Cell for Arbitrary Content

Use `type="custom"` when a plain-text or icon representation is insufficient and you need full control of the cell's content - for example a badge, a rating widget, or a formatted value with a unit.

```html
<mds-price-table-features-row>
  <mds-price-table-features-cell type="label">Assistenza clienti</mds-price-table-features-cell>
  <mds-price-table-features-cell type="custom">
    <mds-chip label="E-mail" variant="info" tone="weak"></mds-chip>
  </mds-price-table-features-cell>
  <mds-price-table-features-cell type="custom">
    <mds-chip label="Chat live" variant="success" tone="weak"></mds-chip>
  </mds-price-table-features-cell>
  <mds-price-table-features-cell type="custom">
    <mds-chip label="Telefono 24/7" variant="primary" tone="strong"></mds-chip>
  </mds-price-table-features-cell>
</mds-price-table-features-row>
```

#### Full Composition Inside the Price Table

Cells must always be children of [`<mds-price-table-features-row>`](../mds-price-table-features-row/AGENTS.md), which in turn lives inside [`<mds-price-table-features>`](../mds-price-table-features/AGENTS.md) and [`<mds-price-table>`](../mds-price-table/AGENTS.md). Do not use the cell outside this hierarchy.

```html
<mds-price-table>
  <mds-price-table-features label="Funzionalita incluse">
    <mds-price-table-features-row>
      <mds-price-table-features-cell type="label">Backup automatico</mds-price-table-features-cell>
      <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
      <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
      <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    </mds-price-table-features-row>
    <mds-price-table-features-row>
      <mds-price-table-features-cell type="label">Spazio di archiviazione</mds-price-table-features-cell>
      <mds-price-table-features-cell>5 GB</mds-price-table-features-cell>
      <mds-price-table-features-cell>20 GB</mds-price-table-features-cell>
      <mds-price-table-features-cell>Illimitato</mds-price-table-features-cell>
    </mds-price-table-features-row>
  </mds-price-table-features>
</mds-price-table>
```

#### Styling Customization

Style the cell only through its public `--mds-price-table-features-cell-*` CSS custom properties and its documented `icon` and `text` shadow parts. Set them on the host or a parent selector; the border and the icon colours (the categorical `label-green` palette for a supported feature) come from the component and follow dark mode and high-contrast modes by themselves. For any colour you set on a part, name a semantic role, `rgb(var(--magma-<role>))` ([`agents/color.md`](../../../../agents/color.md)).

```css
mds-price-table-features-cell {
  --mds-price-table-features-cell-padding: calc(var(--spacing) * 400);
}
```
