article-1
fulldev-ui/article-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/article-1.jsonSource
1---2import type { ImageMetadata } from "astro"3import { Image } from "astro:assets"45import { cn } from "@/lib/utils"6import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"7import { Badge } from "@/components/ui/badge"8import { Section, SectionContainer } from "@/components/ui/section"910type Props = {11 class?: string12 badge?: string13 title: string14 description: string15 author: {16 image?: ImageMetadata17 initials: string18 name: string19 date: string20 }21 image: {22 src: ImageMetadata23 alt: string24 }25}2627const {28 class: className,29 badge,30 title,31 description,32 author,33 image,34} = Astro.props35---3637<Section class={cn("", className)}>38 <SectionContainer class="mx-auto max-w-2xl gap-8">39 <div class="mx-auto flex w-full max-w-2xl flex-col gap-6">40 {41 badge && (42 <Badge variant="secondary" class="w-fit">43 {badge}44 </Badge>45 )46 }47 <div class="flex flex-col gap-4">48 <h149 class="text-4xl leading-tight font-semibold tracking-tight text-balance sm:text-5xl"50 >51 {title}52 </h1>53 <p class="text-muted-foreground text-lg leading-8 text-balance">54 {description}55 </p>56 </div>57 <div class="flex items-center gap-3">58 <Avatar size="lg">59 <AvatarImage src={author.image} alt={author.name} />60 <AvatarFallback>{author.initials}</AvatarFallback>61 </Avatar>62 <div class="flex flex-col">63 <p class="text-sm font-medium">{author.name}</p>64 <p class="text-muted-foreground text-xs">{author.date}</p>65 </div>66 </div>67 </div>6869 <Image70 src={image.src}71 alt={image.alt}72 class="aspect-16/10 w-full rounded-xl object-cover"73 widths={[640, 960]}74 sizes="(min-width: 42rem) 42rem, 100vw"75 />7677 <article78 class="mx-auto flex w-full max-w-2xl flex-col gap-6 text-base leading-8"79 >80 <slot />81 </article>82 </SectionContainer>83</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-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 | |
| blocks-1blocks-1 | fulldev/ui | Blocks | Free | no deps |
