CTA 51 - Billing toggle that updates the buttonPro

Centered card with a working monthly/yearly switch; the price, savings note and button label animate to match.

About CTA 51

Centered card with a working monthly/yearly switch; the price, savings note and button label animate to match.

CTA 51 is a pro cta block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 101 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • interactive
  • pricing
  • toggle
  • switch
  • plan

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/cta-51

Dependencies installed automatically: lucide-react, motion.

Uses: button, reveal, switch, use-reduced-motion, utils.

Usage

import Cta51 from "@/components/blocks/cta-51"

export default function Page() {
  return <Cta51 />
}

FAQ