@redrob-labs/ui v1.8.0 · Redrob Group Design System 2026

CompareBar

Insights · src/components/CompareBar/CompareBar.tsx

One measure for one group against a wider one: a team's figure as a bar, the company's as a tick, both printed beside it. Stack several for "Against the company".

Import

import { CompareBar } from '@redrob-labs/ui';

Rendered

No rendering: the delivery ships no preview case for this one

Props

PropTypeNotes
label required React.ReactNode
value number | null
compare number | null The figure to compare against, drawn as a tick on the same track.
compareLabel string "Company" by default; printed before the comparison figure.
max number
format (v: number | null | undefined) => string
className string