4.2.0
Patterns

EngagementBar

A five-dot density meter for how often someone is engaging — not how much of something is done.

Default

The same 0–100 number as five dots — a meter for a table cell, where a chip would be wide.

Usage

import { EngagementBar } from '@oceanic-hub/brand-system'

One of four meters, and the four answer four questions. Progress is the one to reach for when there is a task with an end — this measures a rate, not a finish line, and a 100 here does not mean "done." SpendBar measures a quantity against a policy-set cap and carries a cap-state this component has no equivalent of, because a rate has no ceiling to be near. FitScore renders a 0–100 score rather than a rate or a completion.

Five dots, always, and the 70/40 colour bands are fixed rather than a prop — both match FitScore, so two chips sitting in the same row agree about what "good" means without a caller keeping two scales in sync.

The number renders by default, and that is an accessibility fix rather than a style choice: the dots alone measure 1.35:1 filled-vs-empty in the light theme, under 1.4.11's 3:1. Pass hideValue only when that same number is already visible right next to this component — its own table column, say — because dropping it without another visible statement of the value re-opens the gap.

value has no absent state. A contact with no engagement score is the caller's em-dash, not a zero-length bar — the same argument FitScore makes for its own score.

In a table

hideValue is safe here only because the number already has its own column — the dots alone fail contrast, so dropping the number without another visible statement of it nearby is the one thing not to do.

ContactEngagementTrend
Northwind92
PadelSwift58
Riverside Clinic21

API Reference

See the EngagementBar API page for every prop of every part, with types, defaults and the contract that pins them.

On this page