A responsive carousel component for displaying a collection of logos with smooth animation.
import { LogoCarousel } from 'ssw-consulting-component-lib/dist/';
//usage with tina
return <LogoCarousel data={/*<data from tina>*/} />
//standalone usage
<LogoCarousel data={{
heading: "<heading>",
maskImages: true, // if you want the images to have a white mask
logos: [
{
logo: "<logo-url>",
altText: "Microsoft",
},]
}} />
data
: Object containing the carousel content
heading
: Title displayed above the carousellogos
: Array of logo objects withlogo
(path) andaltText
example prop: [{logo: "/images/placeholder1.png", altText: "image1"}, {{logo: "/images/placeholder2.png", altText: "image2"}}]isWhiteImages
: Boolean to enable the white mask for images
repeat
: The number of times the logos will repeat in the carousel- this can be used to fix pop in issues that occur when the logo carousel length is smaller than the viewport
className
: a set of custom tailwind classes for styling;textSize
: a prop that allows the headign size to be overriden with a tailwind class- example prop:
text-<size>
- example prop:
textPadding
: a tailwind class to override the paddign aroung the heading;- example prop:
p-<size>
- example prop:
mediumTextSize
: a tailwind class to override the size of the heading on medium size screens- example prop:
md:text-<size>
- example prop:
textColor
: a tailwind class to override the color of the heading- example prop:
text-<color>
- example prop: