PlanCard
A pricing / plan card with feature list and CTA. @startingPoint section="Cards" subtitle="Pricing plan card with features & CTA" viewport="340x420"
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A pricing / plan card with feature list and CTA.
Accessibility
When the whole card is actionable, expose a single accessible name and make it reachable with Tab + Enter. Decorative imagery uses empty alt.
Install and import
npx shadcn@latest add @prism/plan-card
import { PlanCard } from '@/components/prism/PlanCard';
In a no-build prototype, read it from the bundle instead: const { PlanCard } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
name | React.ReactNode | Yes | |
price | React.ReactNode | Yes | The price amount, e.g. "€29". |
period | React.ReactNode | — | Period suffix, e.g. "/mo". Default "/mo". |
description | React.ReactNode | — | |
features | React.ReactNode[] | — | Feature lines, each gets a check. |
cta | React.ReactNode | — | Call-to-action node (a Button). |
featured | boolean | — | Highlight as the recommended plan. |
flag | React.ReactNode | — | Ribbon label when featured. Default "Most popular". |
className | string | — |