pnpm dlx shadcn@latest add @gammaui/logo-cloud
import { LogoCloud } from "@/components/ui/logo-cloud"
export default function Example() {
return <LogoCloud className="my-12" />
}This will display a responsive grid of branded logos with optional decorative icons.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | Extra Tailwind classes applied to the wrapper div. |
| ...props | React.HTMLProps<HTMLDivElement> | — | All native div props are passed through. |
type Logo = {
src: string
alt: string
width?: number
height?: number
}import { LogoCloud } from "@/components/ui/logo-cloud"
const logos = [
{
src: "/brands/tesla.svg",
alt: "Tesla Logo",
},
{
src: "/brands/apple.svg",
alt: "Apple Logo",
},
]
export default function Example() {
return (
<LogoCloud className="border-y">
{logos.map((logo, index) => (
<img
key={index}
src={logo.src}
alt={logo.alt}
className="h-6 dark:brightness-0 dark:invert"
/>
))}
</LogoCloud>
)
}