Skip to content
mdxcn is now part of Shadcn Labs. details

compare

GraphCompare

Options side by side. Write a Markdown table where `yes` and `no` become ✓ and –. For exact numbers on both axes, use Matrix.

use it
Good for putting two options side by side.
instead
Exact numbers on both axes are Matrix. Numeric ranks are Rank.

plans

[ PLANS ]
SoloStudio
  • Registry✓✓
  • Accent picker✓✓
  • Private source–✓
  • Price$0$24
<GraphCompare title="PLANS" accent="Studio">

| | Solo | Studio |
| --- | --- | --- |
| Registry | yes | yes |
| Accent picker | yes | yes |
| Private source | no | yes |
| Price | $0 | $24 |

</GraphCompare>

install

command

before after

[ RENDER ]
MermaidSVGThis
  • Source.md.svg.tsx
  • In git✓–✓
  • Themable––✓
<GraphCompare title="RENDER" accent="This">

| | Mermaid | SVG | This |
| --- | --- | --- | --- |
| Source | .md | .svg | .tsx |
| In git | yes | no | yes |
| Themable | no | no | yes |

</GraphCompare>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
columnsstring[] | "Solo Studio"—Option names across the top.
rowsCompareRow[]—label plus one value per column. Booleans become ✓ or –. Optional when children are Markdown.
childrenMarkdown—| | Solo | Studio | | --- | --- | --- | | Registry | yes | yes |
accentstring—Column name to highlight. Other columns recede.
palette"mono" | "duo" | "multi""mono"mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents.
cornerstring"+"Character at each corner of the frame.
frame"box" | "corners" | "rule" | "none""box"box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content.
classNamestring—Passed to the outer frame.