CTA 01
shadcn-ui-blocks-shadcnship/cta-01FreeBlock
Horizontal call-to-action section with a heading, description, and primary/secondary CTA buttons. Use it at the end of landing page sections to nudge visitors toward sign-up or purchase at the right moment.
See it running
Open the demo on shadcn-ui-blocks
shadcnship.com/blocks/cta-01Install it
npx shadcn@latest add https://shadcnship.com/r/cta-01.jsonSource
1import { ArrowUpRight } from "lucide-react";2import { cn } from "@/lib/utils";3import { Button } from "@/components/ui/button";4import { LogoIcon } from "../social-icons/icons";56interface Cta01Props {7 title?: string;8 description?: string;9 logo?: React.ReactNode;10 buttons?: {11 text: string;12 url?: string;13 icon?: React.ReactNode;14 variant?: "default" | "outline" | "ghost" | "secondary" | "link";15 }[];16 className?: string;17}1819const Cta01 = ({20 title = "Ship faster. Build better.",21 description = "Production-ready shadcn/ui blocks for your next project.",22 logo = <LogoIcon className="size-16 dark:invert" />,23 buttons = [24 {25 text: "Get started now",26 url: "#",27 icon: <ArrowUpRight className="size-4" />,28 },29 ],30 className,31}: Cta01Props) => (32 <section className={cn("container mx-auto px-8 py-12 md:py-24", className)}>33 <div className="flex flex-col gap-8 overflow-hidden rounded-lg border p-8 lg:flex-row lg:items-center lg:p-16">34 {logo && logo}35 <div className="flex flex-1 flex-col justify-center">36 <h2 className="text-3xl leading-tight font-medium tracking-tight md:text-4xl">37 {title}38 </h2>39 <p className="text-muted-foreground md:text-lg">{description}</p>40 </div>41 {buttons && buttons.length > 0 && (42 <div className="flex flex-col gap-4 sm:flex-row">43 {buttons.map((btn, i) => (44 <Button45 key={i}46 variant={btn.variant ?? "default"}47 size="lg"48 asChild49 >50 <a href={btn.url}>51 {btn.text} {btn.icon}52 </a>53 </Button>54 ))}55 </div>56 )}57 </div>58 </section>59);6061export default Cta01;
What it pulls in
npm packages
Other registry items
Files it writes
More from shadcn-ui-blocks
All 74 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Square Grid Backgroundbackground-01 | shadcn-ui-blocks | Blocks | Free | no deps | |
| Dot Pattern Backgroundbackground-02 | shadcn-ui-blocks | Blocks | Free | no deps | |
| Diagonal Stripes Backgroundbackground-03 | shadcn-ui-blocks | Blocks | Free | no deps | |
| Vertical Lines Backgroundbackground-04 | shadcn-ui-blocks | Blocks | Free | no deps | |
| Interactive Grid Backgroundbackground-05 | shadcn-ui-blocks | Blocks | Free | no deps | |
| Banner 01banner-01 | shadcn-ui-blocks | Blocks | Free | 1 dep | |
| Blog 01blog-01 | shadcn-ui-blocks | Blocks | Free | no deps | |
| Changelog 01changelog-01 | shadcn-ui-blocks | Blocks | Free | no deps |
