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