Loading component…
Loading component…
The endless “Trusted by” strip
import { LogoMarquee } from "@/components/ui/logo-marquee";
import { VercelMark, LinearMark, StripeMark, FigmaMark, NotionMark, GitHubMark } from "./marks";
const logos = [
{ name: "Vercel", svg: <VercelMark />, scale: 0.86 },
{ name: "Linear", svg: <LinearMark />, color: "#5E6AD2" },
{ name: "Stripe", svg: <StripeMark />, color: "#635BFF", href: "/customers/stripe" },
{ name: "Figma", svg: <FigmaMark />, color: "#F24E1E" },
{ name: "Notion", svg: <NotionMark /> },
{ name: "GitHub", svg: <GitHubMark /> },
];
export function TrustedBy() {
return (
<section className="py-16">
<p className="mb-6 text-center text-sm text-neutral-500">Trusted by teams at</p>
<LogoMarquee logos={logos} rows={2} speed={36} labels="beside" />
</section>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| logos | { name, svg?, src?, color?, scale?, href? }[] | The logos. svg is a ReactNode – use fill="currentColor" so it follows the muted colour; src takes an image instead. color is the brand colour it lifts to on hover, scale corrects optical size, href makes it a link | |
| speed | number | 40 | Pixels per second – the same pace on any width |
| direction | "left" \| "right" | "left" | Which way the first row runs |
| rows | 1 \| 2 | 1 | Two rows split the logos alternately and run in opposite directions |
| gap | number | 56 | Space between logos in px; about 60 % of it on narrow containers |
| pauseOnHover | boolean | true | Ease to a stop while hovered or focused with the keyboard, and speed back up on leave |
| grayscale | boolean | true | Muted, colourless logos; the hovered one lifts to its brand colour. Off shows full colour and dims the others on hover |
| labels | "none" \| "below" \| "beside" | "none" | Show the brand name as a small caption under the mark, or beside it like a wordmark |
| label | string | "Logos of companies using the product" | Accessible name of the strip |
| className | string | Extra class on the wrapper |
Container queries make logos and gaps smaller in narrow containers, down to 320px without page overflow
Touch: horizontal swipes scrub the strip, vertical swipes still scroll the page
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
@import "tailwindcss"; in your main CSS file.