Toggle Pricing Cards

Toggle Pricing Cards: Monthly and yearly billing toggle that updates three plan cards side by side — price and feature checklist included. SaaS pricing page, one paste away. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Toggle Pricing Cards

npx motion-ui-skill add toggle-pricing-cards

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-merge

Source files

Toggle Pricing Cards

Monthly and yearly billing toggle that updates three plan cards side by side — price and feature checklist included. SaaS pricing page, one paste away.

Install

npx motion-ui-skill add toggle-pricing-cards

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-merge

Usage

"use client";

import { TogglePricingCards } from "@/components/pricing/toggle-pricing-cards";

export function TogglePricingCardsDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <TogglePricingCards />
    </div>
  );
}

API Reference

TogglePricingCards

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category