PixelDosa UI

Pricing Section

Compare plan features and switch between monthly and annual displayed prices.

Plans that grow with your team

Start with the essentials. Change plans when your needs change.

Starter

For trying a better workflow.

$0/ month

Billed monthly

  • 3 active projects
  • Core workflows
  • Community support

Team

For teams building together.

$18/ month

Billed monthly

  • Unlimited projects
  • Shared team spaces
  • Priority support

Scale

For organizations with more needs.

$42/ month

Billed monthly

  • Advanced permissions
  • Dedicated onboarding
  • Custom workflows

Installation

bash
npx shadcn@latest add @pixeldosa/pricing-section

Requires `cn` at `@/lib/utils`. Supply already formatted display prices and accurate billing terms; the component does not calculate tax, currency conversions, or subscription totals.

Usage

<PricingSection
  title="Plans that grow with your team"
  plans={[
    {
      id: "team",
      name: "Team",
      description: "For teams building together.",
      monthlyPrice: "$18",
      annualPrice: "$14",
      features: ["Unlimited projects", "Priority support"],
      action: <Button>Choose Team</Button>,
    },
  ]}
/>

Props

PropTypeDefaultDescription
titlestring—Section heading.
descriptionstring—Optional introduction.
plansPricingPlan[]—Plans with display prices, feature strings, and an action node.
columns"two" | "three""three"Preferred plan-grid layout.
classNamestring—Extra section classes.

why it's built this way

Engineering Notes

Treats displayed prices as caller-formatted strings rather than embedding locale, currency, tax, and billing arithmetic in a presentation block. A native button pair with aria-pressed makes the billing selection keyboard operable without requiring a switch widget for two labelled choices. Plan actions are slots so consumers can connect them to their own checkout or sales flows.

how it moves, and when it doesn't

Motion Notes

The billing selection updates price text immediately with no number-counting effect, since animated price changes can obscure the actual amount. Selected styling and the explicit billing note communicate the current state. Reduced-motion preferences do not alter the text or action availability.