Skip to contentSkip to Content
Feedback
ComponentsCompareMatrix

CompareMatrix

A comparison matrix with check / dash / partial cells and a highlighted “us” column. Use it where the honest answer is a grid, not three paragraphs of prose.

API

CompareMatrix

PropTypeDefaultDescription
toolsstring[]—Column headers.
rows{ feature, values, note? }[]—One row per capability; values are true (check), false (dash), "~" (partial), or free text.
captionstring—Label above the feature column.
highlightnumber0Index of the emphasized column.

Example

Tool comparison

CapabilityEspresso cartChain caféVending machine
Knows your order~—
Open at 6am—
Latte artthe swan is negotiable~—
<CompareMatrix caption="Capability" tools={["Espresso cart", "Chain café", "Vending machine"]} rows={[ { feature: "Knows your order", values: [true, "~", false] }, { feature: "Open at 6am", values: [false, true, true] }, { feature: "Latte art", values: [true, "~", false], note: "the swan is negotiable" }, ]} />