content-3
fulldev-ui/content-3FreeBlock
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/content-3.jsonSource
1---2import type { ImageMetadata } from "astro"3import { Image } from "astro:assets"45import { cn } from "@/lib/utils"6import { Button } from "@/components/ui/button"7import { Section, SectionContainer } from "@/components/ui/section"89type Props = {10 class?: string11 title: string12 description: string13 buttons?: {14 label: string15 href: string16 variant?: "default" | "outline" | "secondary" | "ghost"17 }[]18 image: {19 src: ImageMetadata20 alt: string21 }22}2324const { class: className, title, description, buttons, image } = Astro.props25---2627<Section class={cn("", className)}>28 <SectionContainer class="gap-8">29 <div30 class="flex flex-col gap-4 md:flex-row md:items-end md:justify-between"31 >32 <div class="max-w-2xl">33 <h234 class="text-foreground text-3xl font-semibold tracking-tight text-balance sm:text-4xl"35 >36 {title}37 </h2>38 <p39 class="text-muted-foreground mt-4 text-lg leading-relaxed text-balance"40 >41 {description}42 </p>43 </div>44 {45 buttons?.length && (46 <div class="flex flex-wrap gap-3">47 {buttons.map(({ href, label, ...button }, index) => (48 <Button49 as="a"50 href={href}51 size="lg"52 variant={53 button.variant ?? (index === 0 ? "default" : "secondary")54 }55 {...button}56 >57 {label}58 </Button>59 ))}60 </div>61 )62 }63 </div>64 </SectionContainer>65 <SectionContainer>66 <Image67 src={image.src}68 alt={image.alt}69 class="aspect-video w-full rounded-xl border object-cover"70 widths={[640, 960, 1280, 1536]}71 sizes="(min-width: 80rem) 80rem, 100vw"72 />73 </SectionContainer>74</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 |
