content-2
fulldev-ui/content-2FreeBlock
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-2.jsonSource
1---2import type { ImageMetadata } from "astro"3import { Image } from "astro:assets"45import { cn } from "@/lib/utils"6import { Button } from "@/components/ui/button"7import { Icon } from "@/components/ui/icon"8import { Section, SectionContainer } from "@/components/ui/section"910type Props = {11 class?: string12 title: string13 description: string14 features?: string[]15 buttons?: {16 label: string17 href: string18 variant?: "default" | "outline" | "secondary" | "ghost"19 }[]20 image: {21 src: ImageMetadata22 alt: string23 }24}2526const {27 class: className,28 title,29 description,30 features,31 buttons,32 image,33} = Astro.props34---3536<Section class={cn("", className)}>37 <SectionContainer class="grid gap-12 lg:grid-cols-2 lg:items-center">38 <div class="flex flex-col gap-6">39 <div class="flex flex-col gap-4">40 <h241 class="text-foreground text-3xl font-semibold tracking-tight text-balance sm:text-4xl"42 >43 {title}44 </h2>45 <p class="text-muted-foreground text-lg leading-relaxed text-balance">46 {description}47 </p>48 </div>49 {50 features?.length && (51 <ul class="flex flex-col gap-3">52 {features.map((feature) => (53 <li class="flex items-center gap-3 text-sm">54 <Icon name="check" class="text-primary size-4 shrink-0" />55 {feature}56 </li>57 ))}58 </ul>59 )60 }61 {62 buttons?.length && (63 <div class="flex flex-wrap gap-3">64 {buttons.map(({ href, label, ...button }, index) => (65 <Button66 as="a"67 href={href}68 size="lg"69 variant={70 button.variant ?? (index === 0 ? "default" : "secondary")71 }72 {...button}73 >74 {label}75 </Button>76 ))}77 </div>78 )79 }80 </div>81 <Image82 src={image.src}83 alt={image.alt}84 class="aspect-4/3 w-full rounded-xl border object-cover"85 widths={[640, 960, 1280]}86 sizes="(min-width: 1024px) 50vw, 100vw"87 />88 </SectionContainer>89</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 |
