# Card

> Bordered, clipped surface: the standard container for a themed panel.

- Group: Core
- Status: stable
- HTML page: https://design.ipmnx.com/components/card/
- Spec: https://design.ipmnx.com/design/#nx-card

## Preview

**Card with header + body** Card composed from NxProductHeader + body content.

```html
<div class="nx-card" data-nx-product="check">
  <div class="nx-header">
    <span class="nx-lockup" role="img" aria-label="checkNX">
      <span class="nx-lockup__word">check</span>
      <span class="nx-mark" data-variant="check" aria-hidden="true">
        <svg viewBox="62 112 392 298" aria-hidden="true"
            focusable="false">
          <g class="nx-ligature">
            <path class="nx-n" pathLength="1" d="M92 380 L92 232 C92
                140 178 128 244 156 L424 380"/>
            <path class="nx-x" pathLength="1"
                style="stroke:var(--nx-accent, #2563EB)" d="M424 156
                L244 380"/>
          </g>
        </svg>
      </span>
    </span>
    <span class="nx-header__avatar">AC</span>
  </div>
  <div class="nx-card__body">
    <p style="margin:0">Card body content.</p>
  </div>
</div>
```

```tsx
<NxCard>
  <NxProductHeader product="check" avatar="AC" />
  <div className="nx-card__body">Card body content.</div>
</NxCard>
```

## API

### React props (NxKit)

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | `""` |   | Extra classes merged onto .nx-card. |

### Classes

| Class | Description |
| --- | --- |
| `.nx-card` | Surface: white, hairline border, 18px radius, clipped |
| `.nx-card__body` | Padded vertical stack, 14px gap |

## Accessibility

- No implicit role. The card is a visual container; give the content inside its own semantics (heading, list, form).

## Do / Don't

- Do: Use NxCard as the outer wrapper for a themed panel (header + body).
- Don't nest cards. Flatten to one surface per panel.

## Related

- [Product header](https://design.ipmnx.com/components/product-header.md)
- [KPI tile](https://design.ipmnx.com/components/kpi-tile.md)

---

Source: registry.js (NX Design System)
