UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

SmoothUI/Cta 3

Page sections
1 of 3
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

3 versions·1 library

  • Cta 3
  • Cta 1
  • Cta 2

Cta 3

Compact banner CTA block

npx shadcn@latest add https://smoothui.dev/r/cta-3.json
Open in v0 Docs Repo
Library
SmoothUI
License
MIT
Stack
React · Tailwind CSS · animated · base-ui
Packages
@base-ui/reactclass-variance-authoritymotion
Also adds
index
Size
50 lines

Code

components/smoothui/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;

More like this

Cta 1

SmoothUI·Page sections

Live Button

Eldora UI·Buttons

Animated Shiny Button

Eldora UI·Text effects

Page Transition

Animate UI·NavigationMIT+

Header 1

SmoothUI·Navigation

Questionnaire

HextaUI·Inputs & forms

Native select

HextaUI·Inputs & forms

Transition Panel

Motion Primitives·Other

Alert

HextaUI·Feedback & loaders

Message

HextaUI·Backgrounds

Collapsible

HextaUI·Data display

Bento Grid

Magic UI·Cards

Cool Mode

Magic UI·Buttons

Command

HextaUI·Overlays

Ai Artifact

SmoothUI·Data display