Status-indicator

More information coming soon ...

Example

Offline
Online
Away
Do not disturb
Busy
Unknown
Error
Success
Warning
In progress
Info
<div style="display: flex; flex-direction: column; gap: 24px; background-color: var(--nj-color-background-secondary); padding: 24px;">
  <div class="nj-status-indicator nj-status-indicator--offline">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Offline</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--online">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Online</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--away">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Away</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--do-not-disturb">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Do not disturb</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--busy">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Busy</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--unknown">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Unknown</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--error">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Error</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--success">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Success</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--warning">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Warning</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--in-progress">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">In progress</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--info">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Info</div>
  </div>
</div>

Size variations

Status-indicators come in 3 different sizes

  • small : nj-status-indicator--sm
  • medium : default, no modifier needed
  • large : nj-status-indicator--lg
Small
Default
Large
<div style="display: flex; flex-direction: column; gap: 24px; background-color: var(--nj-color-background-secondary); padding: 24px;">
  <div class="nj-status-indicator nj-status-indicator--sm">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Small</div>
  </div>
  <div class="nj-status-indicator">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Default</div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--lg">
    <div class="nj-status-indicator__svg"></div>
    <div class="nj-status-indicator__text">Large</div>
  </div>
</div>

Without label

You can also use Status-indicators without a label (for example with the avatar).

Accessibility

Using status-indicators without label to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .sr-only class.

<div style="display: flex; flex-direction: column; gap: 24px; background-color: var(--nj-color-background-secondary); padding: 56px;">
  <div class="nj-status-indicator nj-status-indicator--offline">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--online">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--away">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--do-not-disturb">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--busy">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--unknown">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--error">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--success">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--warning">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--in-progress">
    <div class="nj-status-indicator__svg"></div>
  </div>
  <div class="nj-status-indicator nj-status-indicator--info">
    <div class="nj-status-indicator__svg"></div>
  </div>
</div>