Logo strip
One row of customer names right after the hero.
Trusted by teams atAcmeNorthwindGlobexInitechHooli
Install
$ npx shadcn@latest add @nudgekit/logo-stripOr with no config: npx shadcn@latest add https://ui.nudgekit.app/r/logo-strip.json
Usage
usage.tsx
import { LogoStrip } from "@/components/logo-strip"
<LogoStrip logos={["Acme", "Northwind", "Globex"]} />Do
- Place it right after the hero.
- Keep logos monochrome.
Don't
- Use full-colour logos.
Code
What the CLI writes into your project. It is yours to change.
components/logo-strip.tsx
import * as React from "react";
import { cn } from "@/lib/utils";
export interface LogoStripProps {
label?: string;
/** Customer names, or logo elements. Keep logos monochrome in the faint grey. */
logos: React.ReactNode[];
className?: string;
}
/** One row of customer logos right after the hero. */
function LogoStrip({ label = "Trusted by teams at", logos, className }: LogoStripProps) {
return (
<div data-slot="logo-strip" className={cn("mx-auto flex max-w-[1120px] flex-wrap items-center justify-between gap-x-8 gap-y-4 px-6 py-8", className)}>
<span className="text-[13px] text-muted-foreground">{label}</span>
{logos.map((logo, i) => (
<span key={i} className="text-[17px] font-semibold tracking-[-0.02em] text-faint">
{logo}
</span>
))}
</div>
);
}
export { LogoStrip };