One 100% bar of an ordinal mix - how a body of work splits across steps that have an order, such as the six modes of AI use from Look up to Orchestrate.
The colours are the ordinal ramp (--ordinal-0..5), light to deep, never categorical series colours: the steps are ordered, and a palette of unrelated hues would hide that order. The full text equivalent ("Look up 20%, Learn 15%, ...") is the accessible name and the tooltip, so the bar never carries a figure that only colour can tell.
import { MixBar } from '@redrob-labs/ui';
No rendering: the delivery ships no preview case for this one
| Prop | Type | Notes |
|---|---|---|
mix |
Array<number | null> |
One share 0-100 per step, in step order. null or 0 draws no segment. |
steps |
MixStep[] |
The ordinal steps, shallowest first, at most six. Their names make the accessible text. |
label |
string |
Whose mix this is - "Your team" - prefixed to the accessible text. |
thin |
boolean |
A 8px strip with no numbers, for a table row. |
showFrom |
number |
Segments at or above this share print their number. 9 by default: below it the digits do not fit. |
className |
string |