ComparisonTable block renders a structured comparison table — useful for sponsorship tier comparisons, feature matrices, or plan comparisons. It supports highlighted columns (e.g. the recommended tier) and header rows for grouping.
Props
Section heading rendered as
<h2>.Supporting text below the heading.
Array of column header objects. Each has:
title(string) — column header labelhighlighted(boolean) — whentrue, the column is visually highlighted (e.g. a recommended tier)
Array of row objects. Each has:
feature(string) — the row label in the first columnvalues(string[]) — cell values corresponding to each columnisHeader(boolean) — whentrue, the row renders as a section header across all columns
Optional CTA buttons rendered below the table.
Usage in Sanity Studio
- Add a Comparison Table block to a page.
- Define Columns — mark the recommended one as highlighted.
- Add Rows — use
isHeader: truefor section dividers. - Add optional Links for sign-up or contact CTAs.