BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-ui-blocks/cta-04

CTA 04

shadcn-ui-blocks-shadcnship/cta-04
FreeBlock

Centered CTA card with a subtle grid background, bold headline, description, and action button. Use it as a section-closing block that re-engages visitors who scrolled past earlier conversion points.

See it running

Open the demo on shadcn-ui-blocks

shadcnship.com/blocks/cta-04
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

npx shadcn@latest add https://shadcnship.com/r/cta-04.json

Source

src/registry/blocks/cta-04/cta.tsxshadcnship.com/r/cta-04.json
1"use client";
2
3import { useEffect, useRef, useState } from "react";
4import { ArrowUpRight, Book } from "lucide-react";
5import { cn } from "@/lib/utils";
6import { Button } from "@/components/ui/button";
7import { LogoIcon } from "../social-icons/icons";
8
9const GRID = 80;
10
11const GridBackground = () => {
12 const ref = useRef<HTMLDivElement>(null);
13 const [grid, setGrid] = useState({ cols: 0, rows: 0, cellW: 0, cellH: 0 });
14
15 useEffect(() => {
16 const update = () => {
17 if (!ref.current) return;
18 const { width, height } = ref.current.getBoundingClientRect();
19 const cols = Math.max(1, Math.round(width / GRID));
20 const rows = Math.max(1, Math.round(height / GRID));
21 setGrid({ cols, rows, cellW: width / cols, cellH: height / rows });
22 };
23 update();
24 window.addEventListener("resize", update);
25 return () => window.removeEventListener("resize", update);
26 }, []);
27
28 const { cols, rows, cellW, cellH } = grid;
29 const total = cols * rows;
30
31 return (
32 <div ref={ref} className="absolute inset-0 overflow-hidden">
33 {total > 0 && (
34 <div
35 className="h-full w-full"
36 style={{
37 display: "grid",
38 gridTemplateColumns: `repeat(${cols}, ${cellW}px)`,
39 gridTemplateRows: `repeat(${rows}, ${cellH}px)`,
40 }}
41 >
42 {Array.from({ length: total }).map((_, i) => (
43 <div key={i} className="border-r border-b border-white/6" />
44 ))}
45 </div>
46 )}
47 </div>
48 );
49};
50
51interface Cta04Props {
52 title?: string;
53 description?: string;
54 buttons?: {
55 text: string;
56 url?: string;
57 icon?: React.ReactNode;
58 variant?: "default" | "outline" | "ghost" | "secondary" | "link";
59 }[];
60 icon?: React.ReactNode;
61 className?: string;
62}
63
64const Cta04 = ({
65 title = "Ship faster. Build better.",
66 description = "Production-ready shadcn/ui blocks for your next project.",
67 icon = <LogoIcon className="size-6 invert" />,
68 buttons = [
69 {
70 text: "Get Started now",
71 url: "#",
72 icon: <ArrowUpRight className="size-4" />,
73 variant: "secondary",
74 },
75 {
76 text: "View Docs",
77 url: "#",
78 icon: <Book className="size-4" />,
79 variant: "outline",
80 },
81 ],
82 className,
83}: Cta04Props) => (
84 <section className={cn("w-full", className)}>
85 <div className="relative flex items-center justify-center overflow-hidden bg-zinc-950 py-16 text-white md:py-24 lg:py-32">
86 <GridBackground />
87// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • button
  • https://shadcnship.com/r/social-icons.json

Files it writes

  • src/registry/blocks/cta-04/cta.tsx

Facts

Registry
shadcn-ui-blocks
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

Docs on shadcn-ui-blocks shadcnship.com arnaudvolp/shadcnship on GitHub Raw registry item This item as JSON

More from shadcn-ui-blocks

All 74 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Square Grid Backgroundbackground-01shadcn-ui-blocksBlocksFreeno deps
Dot Pattern Backgroundbackground-02shadcn-ui-blocksBlocksFreeno deps
Diagonal Stripes Backgroundbackground-03shadcn-ui-blocksBlocksFreeno deps
Vertical Lines Backgroundbackground-04shadcn-ui-blocksBlocksFreeno deps
Interactive Grid Backgroundbackground-05shadcn-ui-blocksBlocksFreeno deps
Banner 01banner-01shadcn-ui-blocksBlocksFree1 dep
Blog 01blog-01shadcn-ui-blocksBlocksFreeno deps
Changelog 01changelog-01shadcn-ui-blocksBlocksFreeno deps
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