Logo Cloud 1: marquee or grid
Customer logos as an endlessly scrolling row with faded edges, or a static grid with hairline dividers. Wordmarks brighten on hover.
// Ballmac UI: Logo Cloud 1. https://ui.ballmac.com/blocks/logo-cloud-1
import * as React from "react"
import { Aperture, Atom, Boxes, Hexagon, Layers, Orbit, Triangle, Waves, type LucideIcon } from "lucide-react"
import { Marquee } from "@/components/ballmac/marquee"
import { cn } from "@/lib/utils"
type Logo = {
/** Company name, used as the accessible label and shown as a wordmark. */
name: string
/** A mark drawn before the name. Swap for your customers' SVG logos. */
icon?: LucideIcon
/** Render your own logo instead of the icon and name. */
logo?: React.ReactNode
}
type LogoCloud1Props = Omit<React.ComponentProps<"section">, "title"> & {
/** Line above the logos. */
title?: string
/** Logos to show. */
logos?: Logo[]
/** A scrolling row, or a static grid with hairline dividers. */
variant?: "marquee" | "grid"
}
const defaultLogos: Logo[] = [
{ name: "Acme", icon: Triangle },
{ name: "Lumen", icon: Aperture },
{ name: "Halcyon", icon: Waves },
{ name: "Meridian", icon: Orbit },
{ name: "Parallax", icon: Layers },
{ name: "Quanta", icon: Atom },
{ name: "Hexline", icon: Hexagon },
{ name: "Stackwise", icon: Boxes },
]
function Wordmark({ logo }: { logo: Logo }) {
if (logo.logo) return <>{logo.logo}</>
const Icon = logo.icon
return (
<span className="flex items-center gap-2 text-xl font-semibold tracking-tight whitespace-nowrap text-muted-foreground transition-colors hover:text-foreground">
{Icon && <Icon className="size-6" strokeWidth={2.2} aria-hidden="true" />}
{logo.name}
</span>
)
}
function LogoCloud1({ title = "Trusted by fast-moving product teams", logos = defaultLogos, variant = "marquee", className, ...props }: LogoCloud1Props) {
return (
<section data-slot="logo-cloud-1" aria-label={title} className={cn("mx-auto max-w-6xl px-4 py-16 sm:px-6", className)} {...props}>
<p className="text-center text-sm font-medium text-muted-foreground">{title}</p>
{variant === "marquee" ? (
<Marquee speed={36} gap={64} fade pauseOnHover className="mt-8 py-2">
{logos.map((l) => (
<Wordmark key={l.name} logo={l} />
))}
</Marquee>
) : (
<ul className="mt-8 grid grid-cols-2 overflow-hidden rounded-2xl border sm:grid-cols-4">
{logos.map((l) => (
<li key={l.name} className="-me-px -mb-px flex h-24 items-center justify-center border-e border-b">
<Wordmark logo={l} />
</li>
))}
</ul>
)}
</section>
)
}
export { LogoCloud1, type LogoCloud1Props, type Logo }Installation
$ pnpm dlx shadcn@latest add @ballmac/logo-cloud-1Install the dependencies.
$ pnpm add lucide-reactAdd the Ballmac items it builds on.
$ pnpm dlx shadcn@latest add @ballmac/marqueeCopy the source into your project.
components/ballmac/blocks/logo-cloud-1/logo-cloud-1.tsx// Ballmac UI: Logo Cloud 1. https://ui.ballmac.com/blocks/logo-cloud-1 import * as React from "react" import { Aperture, Atom, Boxes, Hexagon, Layers, Orbit, Triangle, Waves, type LucideIcon } from "lucide-react" import { Marquee } from "@/components/ballmac/marquee" import { cn } from "@/lib/utils" type Logo = { /** Company name, used as the accessible label and shown as a wordmark. */ name: string /** A mark drawn before the name. Swap for your customers' SVG logos. */ icon?: LucideIcon /** Render your own logo instead of the icon and name. */ logo?: React.ReactNode } type LogoCloud1Props = Omit<React.ComponentProps<"section">, "title"> & { /** Line above the logos. */ title?: string /** Logos to show. */ logos?: Logo[] /** A scrolling row, or a static grid with hairline dividers. */ variant?: "marquee" | "grid" } const defaultLogos: Logo[] = [ { name: "Acme", icon: Triangle }, { name: "Lumen", icon: Aperture }, { name: "Halcyon", icon: Waves }, { name: "Meridian", icon: Orbit }, { name: "Parallax", icon: Layers }, { name: "Quanta", icon: Atom }, { name: "Hexline", icon: Hexagon }, { name: "Stackwise", icon: Boxes }, ] function Wordmark({ logo }: { logo: Logo }) { if (logo.logo) return <>{logo.logo}</> const Icon = logo.icon return ( <span className="flex items-center gap-2 text-xl font-semibold tracking-tight whitespace-nowrap text-muted-foreground transition-colors hover:text-foreground"> {Icon && <Icon className="size-6" strokeWidth={2.2} aria-hidden="true" />} {logo.name} </span> ) } function LogoCloud1({ title = "Trusted by fast-moving product teams", logos = defaultLogos, variant = "marquee", className, ...props }: LogoCloud1Props) { return ( <section data-slot="logo-cloud-1" aria-label={title} className={cn("mx-auto max-w-6xl px-4 py-16 sm:px-6", className)} {...props}> <p className="text-center text-sm font-medium text-muted-foreground">{title}</p> {variant === "marquee" ? ( <Marquee speed={36} gap={64} fade pauseOnHover className="mt-8 py-2"> {logos.map((l) => ( <Wordmark key={l.name} logo={l} /> ))} </Marquee> ) : ( <ul className="mt-8 grid grid-cols-2 overflow-hidden rounded-2xl border sm:grid-cols-4"> {logos.map((l) => ( <li key={l.name} className="-me-px -mb-px flex h-24 items-center justify-center border-e border-b"> <Wordmark logo={l} /> </li> ))} </ul> )} </section> ) } export { LogoCloud1, type LogoCloud1Props, type Logo }Update the import paths to match your project setup.
Usage
import { LogoCloud1 } from "@/components/ballmac/blocks/logo-cloud-1/logo-cloud-1"
export default function LogoCloud1Demo() {
return <LogoCloud1 />
}States
This block has no states. Static content: nothing to load, submit or fail.
Quality scorecard
Every applicable check passes
Measured in Chromium 153.0.8010.12 on October 19, 2026, on version 1.0.0, across 2 examples.
Passed: Accessibility scan
No serious or critical issues in light and dark, on a phone and a desktop (axe-core 4.13.0, WCAG 2.1 AA and best-practice rules).
Passed: Small screens
No sideways scrolling at 360, 390 or 1280 px wide.
Passed: Reduced motion
Every endless animation stops when the visitor asks for less motion.
Passed: Right to left
Mirrors correctly in Arabic, Hebrew, Persian and Urdu layouts (0% of elements off the mirror, limit 15%).
Passed: Clean console
No console errors or React hydration errors while loading.
Not applicable: Keyboard
Static content: nothing to focus.
Not applicable: Loading, empty and error
Static content: nothing to load, submit or fail.
For information: Automated tests
No test file of its own yet.
For information: Footprint
1.2 KB of source (gzip) in 1 file. Installs lucide-react.
Automated checks find a subset of problems and do not replace testing with a screen reader and a keyboard in your own app. What they miss.
Dependencies
- npm
- lucide-react
- Registry
- @ballmac/marqueeshadcn/utils
Use with AI
Social proof strip under a hero. Pass `logos` ({ name, icon? | logo? }[]) with your customers' SVG logos via `logo`; choose variant "marquee" or "grid". With the shadcn MCP server set up (guide), ask your agent:
Add the Ballmac UI Logo Cloud 1: marquee or grid (@ballmac/logo-cloud-1) to this project with the shadcn MCP, then use it where it fits.
Use it for
- Directly under a hero
- Near pricing to reassure buyers
Not for
- Fewer than four logos (use a single line of text)
Registry JSON: https://ui.ballmac.com/r/logo-cloud-1.json
Free to use in personal and commercial projects.
More logo cloud blocks
Logo-cloud Pro 1: counted and moving logo rows
A count of customers that ticks up, over two rows of logos moving in opposite directions with soft edges.
Logo-cloud Pro 2: grid with a note on hover
Eight logos in a bordered grid beside the heading. Hover or focus a logo to lift it and see what that customer achieved.
Logo-cloud Pro 3: logos filtered by industry
Industry tabs filter a grid of logos with animated layout changes, arrow-key tabs and a polite count.
Logo-cloud Pro 4: logos in orbit
Two rings of logos slowly circling a central statement and button. Logos stay upright and everything is still under reduced motion.
Ballmac UI Pro
Need the whole screen, not one piece?
311 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.
Not ready? Try three Pro blocks free
Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.