Starter
For trying things out.
$0per month
- 3 projects
- Core components
- Community support
Pro
For shipping real products.
$12per month
- Unlimited projects
- All blocks and themes
- Priority support
- Early access
Installation
$ pnpm dlx shadcn@latest add @synccn/pricing-cardFirst time in this project? Connect synccn with one command.
Usage
import { PricingCard } from "@/components/ui/cards";<PricingCard name="Pro" price="$12" features={features} featured />API reference
Generated from the component's TypeScript types, so it always matches the code.
PricingCard
One plan: name, price, features and a call to action. Set featured for emphasis.
- namerequired
stringPlan name.
- pricerequired
stringFormatted price, e.g. $12.
- period
stringDefault
"per month"Text after the price.
- description
React.ReactNodeOne line under the name.
- features
string[]Default
[]Included features.
- cta
stringDefault
"Get started"Button text.
- featured
booleanDefault
falseHighlights the card.
- badge
stringLabel pinned to the top edge.
- onSelect
() => voidCalled when the button is clicked.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Components
- Avatar for
Avatar
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
- lucide-react for Check, Heart, MapPin, MessageCircle, Repeat2, Share, Quote
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label, aria-pressed