Skip to main content
Version: 1.0.3

Comparison Table

Overview

Comparison Table is a fully customizable and visually engaging component for presenting comparison features tiers in modern applications.

It supports:

  • 2–3 pricing tiers per section
  • Displaying price, feature list, and CTA button for each tier
  • Highlighting a recommended tier
  • free/paid toggle
  • Smooth animations for interactions and hover states
  • Fully responsive layout for desktop and mobile.

Preview

Basic

Pricing Plans

Choose the plan that fits your needs

Advance

Pricing Plans

Choose the plan that fits your needs

The Card component consumes the gradient value defined in each plan, enabling consistent and scalable visual differentiation across pricing tiers.

Pricing Plans

Choose the plan that fits your needs

Installation

ignix add component comparisonTable

Props

ComparisonTableProps

PropTypeDefaultDescription
titlestring"Pricing Plans"Title for the comparison table section.
descriptionstring"Choose the plan that fits your needs"Description for the comparison table section.
headstring"Features"Header label for the features column.
iconReact.ElementTypeCrownIcon displayed at the top of the table.
featuresFeature[]List of features to display. Each feature has id and label.
plansPlan[]List of plan objects to display.
mobileBreakpoint`"sm""md""lg"`
variant`"default""dark""light"`
recommendationGradientstringGradient color applied to recommended plan cards.
featureGradientstringOptional gradient for the feature column.
animation`"none""fadeIn""slideUp"
interactive`"none""hover""press"
currentPlanIdnumber1Marks the plan as the currently active plan.
onCtaClick(plan: PlanProps) => voidCallback fired when the CTA button is clicked.

PlanProps

PropTypeDefaultDescription
idnumberUnique identifier for the plan.
namestringPlan name displayed on the card.
pricestringPrice string (e.g., "$29/month").
featureMapRecord<number, FeatureValue>Map of feature IDs to values (`boolean
ctaLabelstring"Get Started"Label text for the CTA button.
recommendedbooleanfalseVisually emphasizes the plan as recommended.
iconReact.ElementTypeOptional icon for the plan.
gradientstringOptional gradient background for the plan card.

Feature

PropTypeDefaultDescription
idnumberUnique identifier for the feature.
labelstringName or description of the feature.