Comparison Table

Plan comparison table with features as rows and plans as columns, showing check or dash icons for booleans and text for values. Scrolls on mobile.

src/registry/ui/comparison-table.tsx/r/comparison-table.json

Installation#

bash
npx shadcn@latest add @minidev/comparison-table

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/comparison-table.json

Usage#

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

export function Example() {
  return <ComparisonTable />
}

API reference#

ComparisonTable props
PropTypeDefault
featuresstring[]SAMPLE_FEATURES
plansPlan[]SAMPLE_PLANS
classNamestring-

Dependencies#

npm

lucide-react

Built from

No other MiniDev files
All pricing and billing components

Learn more