Skip to content
synccn

Pricing Card

New

A single plan with price, features and a call to action.

Starter

For trying things out.

$0per month

  • 3 projects
  • Core components
  • Community support
Most popular

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-card

First 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
    string

    Plan name.

  • pricerequired
    string

    Formatted price, e.g. $12.

  • period
    string

    Default "per month"

    Text after the price.

  • description
    React.ReactNode

    One line under the name.

  • features
    string[]

    Default []

    Included features.

  • cta
    string

    Default "Get started"

    Button text.

  • featured
    boolean

    Default false

    Highlights the card.

  • badge
    string

    Label pinned to the top edge.

  • onSelect
    () => void

    Called when the button is clicked.

  • className
    string

    Extra 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

Helpers

npm packages

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