content-6
fulldev-ui/content-6FreeBlock
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-6.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>38 <div class="grid gap-12 lg:grid-cols-2 lg:items-center">39 <Image40 src={image.src}41 alt={image.alt}42 class="aspect-4/3 w-full rounded-xl border object-cover"43 widths={[640, 960, 1280]}44 sizes="(min-width: 1024px) 50vw, 100vw"45 />46 <div class="flex flex-col gap-6">47 <div class="flex flex-col gap-4">48 <h249 class="text-foreground text-3xl font-semibold tracking-tight text-balance sm:text-4xl"50 >51 {title}52 </h2>53 <p class="text-muted-foreground text-lg leading-relaxed text-balance">54 {description}55 </p>56 </div>57 {58 features?.length && (59 <ul class="flex flex-col gap-3">60 {features.map((feature) => (61 <li class="flex items-center gap-3 text-sm">62 <Icon name="check" class="text-primary size-4 shrink-0" />63 {feature}64 </li>65 ))}66 </ul>67 )68 }69 {70 buttons?.length && (71 <div class="flex flex-wrap gap-3">72 {buttons.map(({ href, label, ...button }, index) => (73 <Button74 as="a"75 href={href}76 size="lg"77 variant={78 button.variant ?? (index === 0 ? "default" : "secondary")79 }80 {...button}81 >82 {label}83 </Button>84 ))}85 </div>86 )87 }88 </div>89 </div>90 </SectionContainer>91</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 |
