PlanCompare

Feature comparison. One column highlight stretches to the column you point at; rows and ticks cascade in. Pricing.

Open playground
FreeProTeam
Projects3UnlimitedUnlimited
Custom domains
Version history30 days1 year
Shared workspace
Priority support

About

PlanCompare is a React component in the Pricing category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { PlanCompare } from "@ashutoshswamy/smoui" and set plans, rows, featured.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { PlanCompare } from "@ashutoshswamy/smoui";

<PlanCompare
  plans={["Free", "Pro", "Team"]}
  featured={1}
  rows={[
    { feature: "Projects", values: ["3", "Unlimited", "Unlimited"] },
    { feature: "Custom domains", values: [false, true, true] },
  ]}
/>

Props 3

plans

Column headings.

string[]
rows

One value per plan: true, false or text.

{ feature: string; values: (boolean | string)[] }[]
featured

Column that holds the highlight until you point at another.

numberdefault 1