Plan Card

A pricing plan card with the plan name, a large price per period, a feature list and a full width call to action. A highlighted prop marks the recommended tier.

src/registry/ui/plan-card.tsx/r/plan-card.json

Installation#

bash
npx shadcn@latest add @minidev/plan-card

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/plan-card.json

Usage#

tsx
import { PlanCard } from "@/components/ui/plan-card"

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

API reference#

PlanCard props
PropTypeDefault
namestring"Pro"
pricestring"$49"
periodstring"mo"
featuresstring[]SAMPLE_FEATURES
ctastring"Choose plan"
highlightedboolean-
classNamestring-
onCta() => void-

Dependencies#

npm

React only

Built from

All pricing and billing components

Learn more