Skip to content
VenusUI
Get started

Pricing Tiers

Three pricing plans with a monthly and yearly switch and a highlighted plan.

Preview

Installation

npx shadcn@latest add @venusui/pricing-01

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/pricing-01.tsx
  • @/components/pricing-01-plans.ts

Also adds the shadcn button component if your project doesn't have it yet.

Usage

The code behind the preview above.

pricing-01-demo.tsx

import { Pricing01 } from "@/components/pricing-01"

export default function Pricing01Demo() {
  return <Pricing01 />
}

API reference

No props. Plans are in pricing-01-plans.ts; the layout and billing switch are in pricing-01.tsx.

Requirements

  • shadcn button. The CLI installs it.
  • React 19 and Tailwind CSS v4, with a cn helper at @/lib/utils.

Customization

  • Edit plans in pricing-01-plans.ts: monthly and yearly are prices per month, and highlighted marks the recommended plan.
  • Prices are formatted as USD by formatPrice at the bottom of pricing-01.tsx. Change the currency there, e.g. currency: "INR" with locale en-IN.
  • The “Save 20%” label is text. Update it if you change the yearly discount.
  • The plan buttons have no action yet. Wrap them in links to your sign-up or checkout pages.

Accessibility

  • The billing switch is a group of two buttons with aria-pressed, so screen readers announce which period is selected.
  • Plans are a list, and each plan’s features are a nested list.

Troubleshooting

Module not found: Can't resolve '@/components/pricing-01-plans'.
Both files must be in the same folder, @/components/. The CLI puts them there; after a manual install, check you created both.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.