BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/fulldev/ui/cta-4

cta-4

fulldev-ui/cta-4
FreeBlock

fulldev/ui publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://ui.full.dev/r/cta-4.json

Source

src/components/blocks/cta-4.astroui.full.dev/r/cta-4.json
1---
2import type { ImageMetadata } from "astro"
3import { Image } from "astro:assets"
4
5import { cn } from "@/lib/utils"
6import {
7 Avatar,
8 AvatarFallback,
9 AvatarGroup,
10 AvatarImage,
11} from "@/components/ui/avatar"
12import { Button } from "@/components/ui/button"
13import { Rating } from "@/components/ui/rating"
14import { Section, SectionContainer } from "@/components/ui/section"
15
16type Props = {
17 class?: string
18 title: string
19 description: string
20 buttons?: {
21 label: string
22 href: string
23 variant?: "default" | "outline" | "secondary" | "ghost"
24 }[]
25 socialProof?: {
26 avatars: {
27 image?: ImageMetadata
28 initials: string
29 name?: string
30 }[]
31 rating: number
32 text: string
33 }
34 image: {
35 src: ImageMetadata
36 alt: string
37 }
38}
39
40const {
41 class: className,
42 title,
43 description,
44 buttons,
45 socialProof,
46 image,
47} = Astro.props
48---
49
50<Section
51 variant="floating"
52 class={cn("dark bg-background overflow-hidden", className)}
53>
54 <Image
55 src={image.src}
56 alt={image.alt}
57 class="absolute inset-0 size-full object-cover opacity-50"
58 widths={[640, 960, 1280, 1536]}
59 sizes="(min-width: 80rem) 80rem, 100vw"
60 />
61 <SectionContainer class="items-center text-center">
62 <div class="flex max-w-2xl flex-col items-center gap-5">
63 <h2
64 class="text-foreground text-3xl leading-[1.1] font-semibold tracking-tight text-balance sm:text-4xl"
65 >
66 {title}
67 </h2>
68 <p class="text-muted-foreground text-lg leading-relaxed text-balance">
69 {description}
70 </p>
71 </div>
72 {
73 buttons?.length && (
74 <div class="flex flex-wrap justify-center gap-3">
75 {buttons.map(({ href, label, ...button }, index) => (
76 <Button
77 as="a"
78 href={href}
79 size="lg"
80 variant={button.variant ?? (index === 0 ? "default" : "outline")}
81 {...button}
82 >
83 {label}
84 </Button>
85 ))}
86 </div>
87 )
88 }
89 {
90 socialProof && (
91 <div class="flex items-center gap-3">
92 <AvatarGroup>
93 {socialProof.avatars.map((avatar) => (
94 <Avatar class="ring-background size-11 ring">
95 <AvatarImage
96 src={avatar.image}
97 alt={avatar.name ?? avatar.initials}
98 />
99 <AvatarFallback>{avatar.initials}</AvatarFallback>
100 </Avatar>
101 ))}
102// … truncated

What it pulls in

Other registry items

  • @fulldev/avatar
  • @fulldev/button
  • @fulldev/rating
  • @fulldev/section

Files it writes

  • src/components/blocks/cta-4.astro

Facts

Registry
fulldev/ui
Type
registry:block
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on fulldev/ui ui.full.dev fulldotdev/ui on GitHub Raw registry item This item as JSON

More from fulldev/ui

All 144 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
article-1article-1fulldev/uiBlocksFreeno deps
article-2article-2fulldev/uiBlocksFreeno deps
articles-1articles-1fulldev/uiBlocksFreeno deps
articles-2articles-2fulldev/uiBlocksFreeno deps
articles-3articles-3fulldev/uiBlocksFreeno deps
articles-4articles-4fulldev/uiBlocksFreeno deps
banner-1banner-1fulldev/uiBlocksFreeno deps
banner-2banner-2fulldev/uiBlocksFreeno 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