Cta 3
smoothui-registry/cta-3FreeBlock
Compact banner CTA block
Install it
npx shadcn@latest add https://www.smoothui.dev/r/cta-3.jsonSource
1"use client";23import SmoothButton from "@/components/smoothui/smooth-button";4import { motion, useReducedMotion } from "motion/react";56const SPRING = {7 bounce: 0.1,8 duration: 0.25,9 type: "spring" as const,10};1112export function CtaBanner() {13 const shouldReduceMotion = useReducedMotion();1415 return (16 <section aria-labelledby="cta-banner-heading">17 <div className="px-6 py-12">18 <motion.div19 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"20 initial={21 shouldReduceMotion ? { opacity: 1 } : { opacity: 0, scale: 0.97 }22 }23 transition={shouldReduceMotion ? { duration: 0 } : SPRING}24 viewport={{ once: true }}25 whileInView={26 shouldReduceMotion ? { opacity: 1 } : { opacity: 1, scale: 1 }27 }28 >29 <div className="flex flex-col items-center justify-between gap-6 md:flex-row">30 <div>31 <h232 className="font-bold text-xl md:text-2xl"33 id="cta-banner-heading"34 >35 Start building today36 </h2>37 <p className="mt-1 text-foreground/70 text-sm md:text-base">38 Install any component with a single command.39 </p>40 </div>41 <SmoothButton variant="candy">Get Started →</SmoothButton>42 </div>43 </motion.div>44 </div>45 </section>46 );47}4849export default CtaBanner;
What it pulls in
npm packages
Other registry items
Files it writes
More from SmoothUI Registry
All 178 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Chat Templatechat-template | SmoothUI Registry | Blocks | Free | 2 deps · 4 files | |
| Cta 1cta-1 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Cta 2cta-2 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Faq 1faq-1 | SmoothUI Registry | Blocks | Free | 2 deps | |
| Faq 2faq-2 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Faq 3faq-3 | SmoothUI Registry | Blocks | Free | 2 deps | |
| Faq 4faq-4 | SmoothUI Registry | Blocks | Free | 2 deps | |
| Features 1features-1 | SmoothUI Registry | Blocks | Free | 1 dep |
