Logo Cloud
Logo cloud display
Overview
Displays a set of logos in either a static flex-wrap layout or a continuously scrolling marquee powered by Embla Carousel. Individual logos can be links. Supports a grayscale filter with color-on-hover, configurable marquee speed, and scroll direction.
Usage
import { LogoCloud } from "@leanicon/web-builder-library";Static
Static with grayscale
Static with links
Marquee
Marquee — slow
Marquee — fast
Marquee — reverse direction
Dark mode
Props
Prop | Type | Default | Description |
|---|---|---|---|
|
| — | Array of logo objects |
|
|
| Layout mode |
|
|
| Marquee scroll speed |
|
|
| Marquee scroll direction |
|
|
| Desaturate logos, color on hover |
|
| — | Force light or dark mode |
|
| — | Additional CSS classes on root |
LogoItem
Prop | Type | Description |
|---|---|---|
|
| Image source URL |
|
| Alt text |
|
| Optional link URL |
|
| Intrinsic image width |
|
| Intrinsic image height |
Notes
- The
marqueevariant uses Embla Carousel with the auto-scroll plugin for a seamless infinite loop. If fewer than 20 logos are provided, the array is automatically duplicated to ensure enough slides for the loop. - Logos are sized at
h-8(mobile) andh-10(md+). speedanddirectiononly apply whenvariant="marquee".- The marquee pauses on mouse hover and resumes when the cursor leaves.
- Dark mode: pass
colorScheme="dark"or place inside a.darkancestor.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
logos | LogoItem[] | — | Yes | |
variant | enum | static | No | |
speed | enum | normal | No | |
direction | enum | left | No | |
grayscale | boolean | false | No | |
colorScheme | enum | — | No | |
className | string | — | No |