# Application Data Table: Comparison Table

Plan comparison table with features as rows, plans as columns, differing cells highlighted, and a per-column upgrade CTA.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/comparison-table
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Data Tables](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/comparison-table.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-data-tables-comparison-table
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button, table
- Installs to: `@/components/blocks/application-pro/data-tables/comparison-table`

## About this block

Comparison Table puts Starter, Growth, and Enterprise
side by side as columns with eight feature rows: included
seats, API calls per month, data retention, SSO/SAML,
audit log, custom roles, SLA uptime, and support tier.
Cells that differ from the baseline Starter plan receive
a bg-muted/30 background so the upgrade delta is
scannable at a glance. A sticky CTA row at the bottom
shows Current plan disabled on Starter, Upgrade to Growth
on the middle column, and Contact sales on Enterprise.

Plans and feature rows are separate typed arrays. The
highlight flag lives on each CellValue so differing cells
are marked at the data layer, not derived in the render.

## When to use

Reach for this block on an in-app upgrade page or billing
settings panel, wired to your plan catalog and the
current plan from your subscription endpoint. Gate the
Upgrade buttons behind your checkout flow.

A natural flow around it on an Application Pro page:

**Before**

- [Billing](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)

**After**

- [Dialogs](https://www.shadcn-ui-blocks.com/blocks/application-pro/dialogs)
- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

## What you can display

One strong use is the plan upgrade comparison surface.
Other comparison tables:

- **Add-on matrix.** Features and their included vs paid
  tiers across multiple add-on packages.
- **Integration tiers.** Connector limits and sync
  frequencies compared across plans.
- **Region availability.** Data residency and compliance
  certifications by plan and region.

> Tip: highlight cells relative to the current plan, not
> the cheapest plan; a customer on Growth should see what
> Enterprise adds for them, not what Starter lacks.

## More in Application Data Tables

- [Audit Log Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/audit-log-table)
- [Column Visibility Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/column-visibility-table)
- [Csv Preview Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/csv-preview-table)
- [Dense Data Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/dense-data-table)
- [Density Toggle Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/density-toggle-table)
- [Diff Review Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/diff-review-table)
- [Editable Cells Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/editable-cells-table)
- [Empty State Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/empty-state-table)
- [Feature Flags Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/feature-flags-table)
- [Grouped Columns Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/grouped-columns-table)
- [Grouped Rows Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/grouped-rows-table)
- [Heatmap Cells Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/heatmap-cells-table)
- [Inline Edit Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/inline-edit-table)
- [Invoices Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/invoices-table)
- [Multi Select Toolbar Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/multi-select-toolbar-table)
- [Nested Detail Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/nested-detail-table)
- [Paginated Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/paginated-table)
- [Pinned Columns Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/pinned-columns-table)
- [Row Actions Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/row-actions-menu-blueprint)
- [Search Highlight Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/search-highlight-table)
- [Selectable Bulk Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/selectable-bulk-table)
- [Sortable Header Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/sortable-header-table)
- [Sparkline Metrics Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/sparkline-metrics-table)
- [Status Summary Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/status-summary-table)
- [Sticky Footer Totals Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/sticky-footer-totals-table)
- [Sticky Header Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/sticky-header-table)
- [Table With Expandable Rows](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/table-with-expandable-rows)
- [Table With Filters](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/table-with-filters)
- [Timeline Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/timeline-table)
- [Tree Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/tree-table)
- [Users Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables/users-table)
