Skip to content

Stat strip

One row of metrics for one source, with where the numbers come from.

View as Markdown

Preview

Post performance

LinkedIn
Impressions
4,210
Reactions
87
Clicks
64
synced 2 h ago
<div class="nx-statstrip">
  <span class="nx-statstrip__label">LinkedIn</span>
  <dl class="nx-statstrip__stats">
    <div class="nx-statstrip__stat">
      <dt>Impressions</dt>
      <dd class="tabular-nums">4,210</dd>
    </div>
    <div class="nx-statstrip__stat">
      <dt>Reactions</dt>
      <dd class="tabular-nums">87</dd>
    </div>
    <div class="nx-statstrip__stat">
      <dt>Clicks</dt>
      <dd class="tabular-nums">64</dd>
    </div>
  </dl>
  <span class="nx-statstrip__source">synced 2 h ago</span>
</div>

API

React props (NxKit)

React (NxKit) props
PropTypeDefaultRequiredDescription
labelReactNodeRequiredThe source (platform, channel).
stats{ label; value }[]RequiredThe metrics.
sourceReactNodeRequiredOrigin of the numbers: synced when / manual.
actionReactNodeundefinede.g. "Enter numbers".

Classes

Framework-agnostic classes
ClassDescription
.nx-statstripRow
.nx-statstrip__sourceOrigin, end-aligned

Accessibility

  • A definition list (dt/dd): each value is read with its label.

Do / Don’t

  • Do: Always show the source of the numbers.Don't mix synced and hand-entered numbers in one strip without saying so.

View in spec