Ballmac UI home

Comparison Table

A semantic feature matrix with a highlighted choice and accessible boolean values.

Compare workspace plans
FeatureStarterTeamFor growing groups
Members3Unlimited
Shared projects
Advanced roles

Installation

$ pnpm dlx shadcn@latest add @ballmac/comparison-table

Usage

import { ComparisonTable } from "@/components/ballmac/comparison-table"

The full example is in the Code tab above.

Examples

States and variants

Compare export formats
FeatureCSVPDF
Editable data
Print ready

API reference

PropTypeDefault
caption*

Accessible table caption.

string—
columns*

Compared choices.

ComparisonColumn[]—
rows*

Features or criteria.

ComparisonRow[]—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tab / Arrow keysFocuses and scrolls the comparison region when narrow

Use with AI

A semantic feature matrix with a highlighted choice and accessible boolean values. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Comparison Table (@ballmac/comparison-table) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Compare capabilities across choices

Not for

  • Use Description List for one object

Registry JSON: https://ui.ballmac.com/r/comparison-table.json

Credits

Free to use in personal and commercial projects.