Skip to content

Product header

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

View as Markdown

Preview

With avatar

checkAC
<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>

API

React props (NxKit)

React (NxKit) props
PropTypeDefaultRequiredDescription
product"ord"|"check"|"cert"|"file"|"firm"|"sky"|"copro"|"host"RequiredWhich accent ramp themes the bar.
avatarstringundefinedOptional initials shown in a circular avatar.

Classes

Framework-agnostic classes
ClassDescription
.nx-headerTinted bar, accent-50 bg, accent-100 bottom border
.nx-header__avatar26×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.

View in spec