# Product header

> Tinted header bar holding the product lockup and an optional avatar.

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

## Preview

**With avatar**

```html
<div class="nx-header" data-nx-product="check">
  <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>
```

```tsx
<NxProductHeader product="check" avatar="AC" />
```

## API

### React props (NxKit)

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `product` | `"ord"\|"check"\|"cert"\|"file"\|"firm"\|"sky"\|"copro"\|"host"` |   | yes | Which accent ramp themes the bar. |
| `avatar` | `string` | `undefined` |   | Optional initials shown in a circular avatar. |

### Classes

| Class | Description |
| --- | --- |
| `.nx-header` | Tinted bar, accent-50 bg, accent-100 bottom border |
| `.nx-header__avatar` | 26×26 circle, accent fill, white initials |

## Accessibility

- The lockup's SVG is aria-hidden; the accessible name comes from the lockup's aria-label ("`<Prefix>`NX").

## Do / Don't

- Do: Pair with NxCard as the panel's top strip.
- Don't put more than one primary action inside the header.

## Related

- [Card](https://design.ipmnx.com/components/card.md)
- [Avatar](https://design.ipmnx.com/components/avatar.md)

---

Source: registry.js (NX Design System)
