sigilUI

Matrix Diagram

A 2D matrix/quadrant diagram for categorizing items by two dimensions.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { MatrixDiagram } from "@sigil-ui/components";

Usage

<MatrixDiagram
  xAxisLabel="Effort"
  yAxisLabel="Impact"
  xLabels={["Low", "High"]}
  yLabels={["High", "Low"]}
  cells={matrix}
/>

Props

PropTypeDefaultDescription
cellsMatrixCell[][]—2D array of cell content
xLabelsstring[]—Column labels
yLabelsstring[]—Row labels
xAxisLabelstring—X-axis title
yAxisLabelstring—Y-axis title

Token integration

CSS VariablePurpose
--s-borderCell borders
--s-surfaceCell background
--s-surface-elevatedCell hover background
--s-textCell label text
--s-text-mutedAxis labels, descriptions
--s-primaryIcon color
--s-radius-mdCell border radius
--s-duration-fastHover transition
--s-font-monoAxis label font