All components

CTA 3

CTA 3 is a React and Tailwind CSS button component from SmoothUI, licensed MIT. Copy it and paste it into your project.

SmoothUI MIT buttons

What it is

CTA 3 is a React and Tailwind CSS button component from SmoothUI, licensed MIT. Copy it and paste it into your project.

How to use it

Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.

Open in the catalogue

Five free copies a month. No card.

Needs

npm i motion

Licence

This component comes from SmoothUI and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

CTA 3

index.tsx
"use client";

import SmoothButton from "@/components/smoothui/smooth-button";
import { motion, useReducedMotion } from "motion/react";

const SPRING = {
  bounce: 0.1,
  duration: 0.25,
  type: "spring" as const,
};

export function CtaBanner() {
  const shouldReduceMotion = useReducedMotion();

  return (
    <section aria-labelledby="cta-banner-heading">
      <div className="px-6 py-12">
        <motion.div
          className="mx-auto max-w-4xl overflow-hidden rounded-2xl border bg-gradient-to-r from-primary/5 via-background to-primary/5 p-8 md:p-12"
          initial={
            shouldReduceMotion ? { opacity: 1 } : { opacity: 0, scale: 0.97 }
          }
          transition={shouldReduceMotion ? { duration: 0 } : SPRING}
          viewport={{ once: true }}
          whileInView={
            shouldReduceMotion ? { opacity: 1 } : { opacity: 1, scale: 1 }
          }
        >
          <div className="flex flex-col items-center justify-between gap-6 md:flex-row">
            <div>
              <h2
                className="font-bold text-xl md:text-2xl"
                id="cta-banner-heading"
              >
                Start building today
              </h2>
              <p className="mt-1 text-foreground/70 text-sm md:text-base">
                Install any component with a single command.
              </p>
            </div>
            <SmoothButton variant="candy">Get Started →</SmoothButton>
          </div>
        </motion.div>
      </div>
    </section>
  );
}

export default CtaBanner;

Similar components