feature-1
efferd/feature-1FreeBlock
Minimal feature card with icon, title, and subtle grid background.
Install it
npx shadcn@latest add https://legacy.efferd.com/r/feature-1.jsonSource
1import type React from "react";23// https://magicui.design/docs/components/grid-pattern4import { GridPattern } from "@/components/ui/grid-pattern";56import { cn } from "@/lib/utils";78type FeatureType = {9 title: string;10 icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;11 description: string;12};1314type FeatureCardPorps = React.ComponentProps<"div"> & {15 feature: FeatureType;16};1718export function FeatureCard({19 feature,20 className,21 ...props22}: FeatureCardPorps) {23 return (24 <div className={cn("relative overflow-hidden p-6", className)} {...props}>25 <div className="-mt-2 -ml-20 pointer-events-none absolute top-0 left-1/2 size-full [mask-image:radial-gradient(farthest-side_at_top,white,transparent)]">26 <GridPattern27 className="absolute inset-0 size-full stroke-foreground/20"28 height={40}29 width={40}30 x={5}31 />32 </div>33 <feature.icon34 aria-hidden35 className="size-6 text-foreground/75"36 strokeWidth={1}37 />38 <h3 className="mt-10 text-sm md:text-base">{feature.title}</h3>39 <p className="relative z-20 mt-2 font-light text-muted-foreground text-xs">40 {feature.description}41 </p>42 </div>43 );44}
What it pulls in
npm packages
Other registry items
Files it writes
More from efferd
All 40 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| auth-1auth-1 | efferd | Blocks | Free | no deps · 2 files | |
| auth-2auth-2 | efferd | Blocks | Free | 1 dep · 3 files | |
| contact-1contact-1 | efferd | Blocks | Free | no deps | |
| contact-2contact-2 | efferd | Blocks | Free | no deps | |
| cta-1cta-1 | efferd | Blocks | Free | no deps | |
| cta-2cta-2 | efferd | Blocks | Free | no deps | |
| cta-3cta-3 | efferd | Blocks | Free | no deps | |
| cta-4cta-4 | efferd | Blocks | Free | no deps |
