Arc
ComponentsBlocksDocsPricingTry the demo
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboard
KPI drilldownNew
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Connected scatterNew
Market terminalNew
Budget varianceNew
Small multiplesNew
Line replayNew
AI chatNew
AI composer
Agent runNew
SidebarPro4
Page header
Command palette
Notification center
Empty states
Login and sign up5
OTP input
Multi-step formPro
Settings page
Security settings
Billing overview
Usage billingNew
Team members
Invite peopleNew
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Plan comparison
Pricing calculatorNewPro
Usage pricingPro
Cart drawerNewPro
Checkout summaryNewPro
Invoice studio
Wallet card
Product listingNew
Product detailNew
Inbox triage
Support conversation
Support widget
File upload
Media playerPro
Week calendarNew
Availability picker
Project board
Release readiness
Hero sectionNew
Hero signupNewPro
Scroll storyNewPro
Spotlight gridNewPro
Feature bentoNewPro
Comparison tableNew
Logo marquee
Studio perspectivesPro
Stats bandNew
Changelog feed
FAQ sectionNew
Contact sectionNew
Team showcasePro
Blog gridNew
Site headerNew
Site footerNew
CTA sectionNew
Newsletter signupNew
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new80 new
BlocksComparison table

Comparison table

An us versus them table with a sticky header, a highlighted column, and a stacked phone view.

$pnpm dlx shadcn@latest add @uiarc/comparison-table
Live block · sample data

When to use

  • Showing how your product stacks up against named alternatives.
  • Feature matrices with three to five columns and grouped rows.

When not to use

  • Use plan-comparison to compare your own pricing tiers.
  • Use a sortable data table for large datasets.

Installation

Add Comparison table with the shadcn CLI, or copy the source by hand.

$pnpm dlx shadcn@latest add @uiarc/comparison-tablepnpm dlx shadcn@latest add @uiarc/comparison-table

Adds the block and its local dependencies, and installs motion, lucide-react. First time? Add the @uiarc registry to components.json, or use the full URL:

Usage

Use this on a pricing or alternatives page. Describe your columns and feature rows in comparison-table-data.ts, mark your product with highlight, and point the cta at signup; stickyTop offsets the header under a fixed site header.

example.tsx
1import { ComparisonTable } from "@/registry/blocks/comparison-table/comparison-table";2 3export function Alternatives() {4  return (5    <ComparisonTable6      columns={[7        { id: "us", name: "Relay", caption: "$10 per seat", highlight: true },8        { id: "them", name: "Legacy suite", caption: "$24 per seat" },9      ]}10      sections={[{ id: "core", title: "Core", rows: [11        { id: "offline", feature: "Offline mode", values: { us: true, them: false } },12        { id: "sso", feature: "SSO", values: { us: true, them: { value: "partial", note: "Enterprise plan" } } },13      ] }]}14      cta={{ label: "Start free trial", href: "/signup" }}15      stickyTop={64}16    />17  );18}
Built fromSwitchButton

API reference

ComparisonTable

An us versus them table with sections, check, partial and not included marks, a tinted band behind your column, a sticky frosted header, a differences only switch, and a stacked two column view on phones.

PropTypeDefaultDescription
columnsComparisonColumn[]–Products to compare. Mark yours with highlight: true.
sectionsComparisonSection[]–Grouped feature rows. Values: true, false, "partial", a string, or { value, note }.
titlestring"How Relay compares"Section heading.
descriptionstring–Line under the heading.
differencesOnlyboolean–Hide rows where all visible columns match (controlled).
defaultDifferencesOnlybooleanfalseInitial switch state when uncontrolled.
onDifferencesOnlyChange(value: boolean) => void–Called when the switch flips.
compareWithstring–Competitor shown beside yours in the stacked phone view (controlled).
onCompareWithChange(id: string) => void–Called when a competitor is picked on phones.
cta{ label: string; href?: string; onClick?: () => void; doneLabel?: string }–Button at the foot of your column. doneLabel morphs in after a click.
stickyTopnumber0Offset for the sticky header, such as a fixed site header height.
maxHeightnumber | string–Caps the table height and scrolls it inside the block with the header pinned.
stackBelownumber640Block width below which the phone view takes over.
classNamestring–Extra class on the section.

Keyboard interactions

Tab
Moves to the differences switch, the phone competitor picker, and the call to action.
Space
Flips the differences switch.

Accessibility

  • Built with table, row, columnheader, rowheader and cell roles, so screen readers navigate it as a table.
  • Marks have text alternatives: Included, Partial (with its note), Not included.
  • The switch is a real checkbox with role switch; a polite live region says when rows are filtered.
  • Meaning never relies on color: checks, half circles and dashes differ in shape, with a legend.

Motion

  • Checks in your column draw in once, staggered down the table, when they scroll into view.
  • Differences only collapses matching rows on the smooth spring and closes the gap.
  • Picking a competitor on phones swaps its header and marks with a small pop.
  • The call to action morphs its label to the done state.
  • Reduced motion shows every mark at once and swaps collapses for instant changes.

Responsive behavior

  • Below 640px (stackBelow) it shows your column beside one competitor with a picker above.
  • Column widths are fractions, so it never scrolls sideways.

Performance

  • A width observer switches layouts; no per frame work while scrolling.
  • Row collapses animate height only on rows that change.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use this for a /compare or /alternatives page or under pricing.
  • Keep competitor names generic or factual; values should be verifiable.
  • Set stickyTop to your fixed header height; use maxHeight only when embedding the table in a panel.
/components/blocks/comparison-table/markdown

The full library index for assistants is at /llms.txt.

Related

Plan comparisonBlockCompare meaningful differences between plans and billing periods.Pricing calculatorProBlockA seat slider and billing toggle drive plan cards with rolling prices and a moving recommended badge.Usage pricingProBlockA pricing calculator that finds your plan as you drag seats and traffic.FAQ sectionBlockFAQs as an accordion, a topic rail, or a searchable list that highlights matches.
PreviousBlog gridNextFeature bento
Arc · 75 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown

How Relay compares

Everything a growing team needs, without the enterprise price or the spreadsheet sprawl.

Feature
Relay$10 per seat
Legacy suite$24 per seat
SpreadsheetsFree
Point tools$16 per seat
Planning
Projects
Unlimited
Up to 50
Unlimited
Up to 10
Timelines and roadmaps
Included
Included
Not included
PartialTimeline only
DependenciesBlocked work moves when its blocker does
Included
Included
Not included
Not included
Templates
Included
Included
PartialManual copies
Included
Collaboration
Real time editing
Included
Not included
Included
Included
Free guest access
Included
Not included
Included
PartialFive guests
Comments and mentions
Included
Included
Included
Included
Offline modeEdits sync when you reconnect
Included
Not included
PartialDesktop app only
Not included
Automation
Rules and triggers
Included
Included
Not included
PartialPaid add on
AI summaries
Included
Not included
Not included
Not included
Public API
Included
Included
Included
Included
Security
SAML single sign on
Included
Included
PartialEnterprise plan
Not included
Audit log
Included
Included
Not included
Not included
EU data residency
Included
PartialEnterprise plan
Included
Not included
IncludedPartialNot included

Showing all rows