BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uifoundry/cta-3

CTA 3

uifoundry/cta-3
FreeBlock

Vibrant gradient background CTA with centered layout and two CTA buttons

Live preview

live · rendered by the registry
Rendered by uifoundry on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://uifoundry.dev/r/cta-3.json

Source

registry/payload/blocks/cta/cta-3/index.tsxuifoundry.dev/r/cta-3.json
1/**
2 * CTA 3 Component
3 *
4 * Source: Custom gradient design for UIFoundry
5 * License: MIT
6 * Created: 2025-10-31
7 *
8 * Design:
9 * - Vibrant gradient background for high impact
10 * - Centered layout for focus
11 * - Modern button styling with good contrast
12 */
13
14import Link from "next/link";
15
16import type { CTA_3_Block } from "~/payload-types";
17
18import { Button } from "@/registry/ui/button";
19
20export * from "./config";
21
22export default function CallToAction3(props: NonNullable<CTA_3_Block>) {
23 return (
24 <section className="relative overflow-hidden bg-gradient-to-br from-blue-600 via-purple-600 to-pink-600 py-20 md:py-32">
25 {/* Gradient overlay for depth */}
26 <div className="absolute inset-0 bg-gradient-to-t from-black/20 to-transparent" />
27
28 <div className="relative mx-auto max-w-4xl px-6">
29 <div className="text-center">
30 <h2 className="text-4xl font-bold text-white text-balance lg:text-5xl xl:text-6xl">
31 {props.header}
32 </h2>
33
34 {props.subheader && (
35 <p className="mt-6 text-lg text-white/90 text-balance md:text-xl">
36 {props.subheader}
37 </p>
38 )}
39
40 <div className="mt-10 flex flex-col gap-4 sm:flex-row sm:justify-center sm:gap-4">
41 {(props.actions ?? []).map((action, index) => {
42 const isSecondary = index === 1;
43
44 return (
45 <Button
46 asChild
47 key={`CTA_3_Block-action-${index}`}
48 size="lg"
49 variant={isSecondary ? "outline" : "default"}
50 className={
51 isSecondary
52 ? "border-2 border-white bg-transparent text-white hover:bg-white hover:text-purple-600"
53 : "bg-white text-purple-600 hover:bg-white/90"
54 }
55 >
56 <Link href={action.href ?? "/"}>
57 <span>{action.label ?? "Get Started"}</span>
58 </Link>
59 </Button>
60 );
61 })}
62 </div>
63 </div>
64 </div>
65 </section>
66 );
67}

What it pulls in

npm packages

  • react
  • next
  • payload

Other registry items

  • button
  • @uifoundry/header-field
  • @uifoundry/subheader-field
  • @uifoundry/call-to-action-pair-field
  • @uifoundry/block-constants

Files it writes

  • registry/payload/blocks/cta/cta-3/index.tsx
  • registry/payload/blocks/cta/cta-3/config.ts

Facts

Registry
uifoundry
Type
registry:block
Access
Free
Files written
2
Licence
NOASSERTION
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

Docs on uifoundry uifoundry.dev UIFoundry/uifoundry on GitHub Raw registry item This item as JSON

More from uifoundry

All 54 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Color Fieldcolor-fielduifoundryBlocksFree4 deps · 2 files
Coming Soon 1coming-soon-1uifoundryBlocksFree3 deps · 2 files
CTA 1cta-1uifoundryBlocksFree3 deps · 2 files
CTA 2cta-2uifoundryBlocksFree3 deps · 2 files
Custom Headercustom-headeruifoundryBlocksFree4 deps · 3 files
Features 1features-1uifoundryBlocksFree3 deps · 2 files
Features 2features-2uifoundryBlocksFree4 deps · 2 files
Features 3features-3uifoundryBlocksFree4 deps · 2 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex