Comparison table
CoreBlockAn us versus them table with a sticky header, a highlighted column, and a stacked phone view.
pnpm dlx shadcn@latest add https://wui.alann.works/r/comparison-table.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
title | string | "How Relay compares" |
description | string | — |
columns | ComparisonColumn[] | comparisonColumns |
sections | ComparisonSection[] | comparisonSections |
differencesOnly | boolean | — |
defaultDifferencesOnly | boolean | false |
onDifferencesOnlyChange | (value: boolean) => void | — |
compareWith | string | — |
onCompareWithChange | (id: string) => void | — |
cta | { label: string; href?: string; onClick?: () => void; doneLabel?: string } | — |
stickyTop | number | 0 |
maxHeight | number | string | — |
stackBelow | number | 640 |
className | string | — |