features-6
fulldev-ui/features-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/features-6.jsonSource
1---2import { cn } from "@/lib/utils"3import { Button } from "@/components/ui/button"4import { Section, SectionContainer } from "@/components/ui/section"5import { Separator } from "@/components/ui/separator"67type Props = {8 class?: string9 title: string10 description: string11 buttons?: {12 label: string13 href: string14 variant?: "default" | "outline" | "secondary" | "ghost"15 }[]16 features: {17 title: string18 description: string19 }[]20}2122const { class: className, title, description, buttons, features } = Astro.props23---2425<Section class={cn("", className)}>26 <SectionContainer>27 <div class="flex max-w-2xl flex-col gap-4">28 <h229 class="text-foreground text-3xl font-semibold tracking-tight text-balance sm:text-4xl"30 >31 {title}32 </h2>33 <p class="text-muted-foreground text-base leading-relaxed text-balance">34 {description}35 </p>36 {37 buttons?.length && (38 <div class="mt-2 flex flex-wrap gap-3">39 {buttons.map(({ href, label, ...button }, index) => (40 <Button41 as="a"42 href={href}43 variant={44 button.variant ?? (index === 0 ? "default" : "outline")45 }46 {...button}47 >48 {label}49 </Button>50 ))}51 </div>52 )53 }54 </div>55 </SectionContainer>56 <SectionContainer>57 <div class="grid gap-12 sm:grid-cols-2 lg:grid-cols-3">58 {59 features.map((feature) => (60 <div>61 <Separator />62 <div class="pt-6">63 <h3 class="text-foreground text-lg font-medium">64 {feature.title}65 </h3>66 <p class="text-muted-foreground mt-2 text-sm leading-relaxed">67 {feature.description}68 </p>69 </div>70 </div>71 ))72 }73 </div>74 </SectionContainer>75</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 |
