logo-cloud-1
efferd/logo-cloud-1FreeBlock
Simple logo grid displaying brand icons in a clean, bordered layout with light and dark mode support.
Install it
npx shadcn@latest add https://legacy.efferd.com/r/logo-cloud-1.jsonSource
1import { cn } from "@/lib/utils";23type Logo = {4 src: string;5 alt: string;6 width?: number;7 height?: number;8};910type LogoCloudProps = React.ComponentProps<"div"> & {11 logos: Logo[];12};1314export function LogoCloud({ logos, className, ...props }: LogoCloudProps) {15 return (16 <div17 className={cn(18 "mx-auto grid max-w-3xl grid-cols-2 rounded-lg bg-border shadow md:grid-cols-4",19 className20 )}21 {...props}22 >23 {logos.map((logo) => (24 <div25 className="flex items-center justify-center rounded-lg border bg-background p-8"26 key={logo.alt}27 >28 <img29 alt={logo.alt}30 className="pointer-events-none block h-4 select-none md:h-5 dark:brightness-0 dark:invert"31 height={logo.height ?? "auto"}32 loading="lazy"33 src={logo.src}34 width={logo.width ?? "auto"}35 />36 </div>37 ))}38 </div>39 );40}
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 |
