Skip to content

Integration card

A connected account: logo, account, status badge, one action.

View as Markdown

Preview

Facebook page

Facebook
Connected
<section class="nx-card nx-integration nx-integration--connected">
  <div class="nx-card__body nx-integration__body">
    <div class="nx-integration__head">
      <span class="nx-integration__logo" aria-hidden="true">f</span>
      <div class="nx-integration__name">
        <h3 class="nx-card__title">Facebook</h3>
        <p class="nx-integration__account">Page: IPM Facility</p>
      </div>
      <span class="nx-badge nx-badge--success">
        <span class="nx-badge__dot"></span>
        Connected
      </span>
    </div>
    <div class="nx-card__footer">
      <button type="button"
          class="nx-btn nx-btn--ghost">Disconnect</button>
    </div>
  </div>
</section>

API

React props (NxKit)

React (NxKit) props
PropTypeDefaultRequiredDescription
logoReactNodeRequiredBrand mark of the integration (decorative, aria-hidden).
nameReactNodeRequiredIntegration name.
status"connected" | "expired" | "disconnected" | "error"RequiredDrives the badge variant.
statusLabelstringRequiredLocalised status text.
accountReactNodeundefinedWhich account is connected.
descriptionReactNodeundefinedOne line under the head: what the integration is used for.
actionReactNodeundefinedONE action in the footer.
errorReactNodeundefinedWhy it failed (role=alert).
childrenReactNodeundefinedExtra body content between the description and the error.

Classes

Framework-agnostic classes
ClassDescription
.nx-integrationCard
.nx-integration__bodyPadded body (nx-card__body); footer pinned to the bottom
.nx-card__footerFooter actions (new in 0.9)

States

expired

LinkedIn
Expired

Accessibility

  • Status is a text badge, never colour alone; errors are role=alert.

Do / Don’t

  • Do: Keep all connections on one Accounts page and link there.Don't scatter connect buttons across feature pages.

View in spec