cta-8
fulldev-ui/cta-8FreeBlock
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-8.jsonSource
1---2import { cn } from "@/lib/utils"3import { Button } from "@/components/ui/button"4import { Section, SectionContainer } from "@/components/ui/section"56type Props = {7 class?: string8 title: string9 description: string10 buttons?: {11 label: string12 href: string13 variant?: "default" | "outline" | "secondary" | "ghost"14 }[]15}1617const { class: className, title, description, buttons } = Astro.props18---1920<Section21 variant="floating"22 class={cn("border-primary/20 shadow-none", className)}23>24 <SectionContainer25 class="before:from-primary/20 relative items-center before:absolute before:top-full before:left-1/2 before:-z-10 before:h-[200%] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-to-b before:to-transparent before:blur-3xl"26 >27 <div class="flex max-w-2xl flex-col items-center gap-5 text-center">28 <h229 class="text-foreground text-3xl leading-[1.1] font-semibold tracking-tight text-balance sm:text-4xl"30 >31 {title}32 </h2>33 <p class="text-muted-foreground text-lg leading-relaxed text-balance">34 {description}35 </p>36 </div>37 {38 buttons?.length && (39 <div class="flex flex-wrap justify-center gap-3">40 {buttons.map(({ href, label, ...button }, index) => (41 <Button42 as="a"43 href={href}44 size="lg"45 variant={button.variant ?? (index === 0 ? "default" : "outline")}46 {...button}47 >48 {label}49 </Button>50 ))}51 </div>52 )53 }54 </SectionContainer>55</Section>
What it pulls in
Other registry items
Files it writes
More from fulldev/ui
All 144 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| article-1article-1 | fulldev/ui | Blocks | Free | no deps | |
| article-2article-2 | fulldev/ui | Blocks | Free | no deps | |
| articles-1articles-1 | fulldev/ui | Blocks | Free | no deps | |
| articles-2articles-2 | fulldev/ui | Blocks | Free | no deps | |
| articles-3articles-3 | fulldev/ui | Blocks | Free | no deps | |
| articles-4articles-4 | fulldev/ui | Blocks | Free | no deps | |
| banner-1banner-1 | fulldev/ui | Blocks | Free | no deps | |
| banner-2banner-2 | fulldev/ui | Blocks | Free | no deps |
