### Install react-infinite-logo-slider via npm Source: https://github.com/kreudev/react-infinite-logo-slider/blob/main/README.md Installs the react-infinite-logo-slider package using npm. This is the first step to using the component in your project. ```bash npm install react-infinite-logo-slider ``` -------------------------------- ### Multiple Sliders with Different Configurations (TypeScript) Source: https://context7.com/kreudev/react-infinite-logo-slider/llms.txt This example demonstrates setting up multiple independent Slider instances on the same page, each with distinct configurations. It shows how to control width, duration, direction (toRight), hover behavior, and blur borders for different sliders, effectively managing multiple animated lists simultaneously. ```typescript import Slider from 'react-infinite-logo-slider' function MultipleSliders() { const techLogos = [ { src: '/tech/react.svg', alt: 'React' }, { src: '/tech/vue.svg', alt: 'Vue' }, { src: '/tech/angular.svg', alt: 'Angular' }, { src: '/tech/svelte.svg', alt: 'Svelte' } ] const clientLogos = [ { src: '/clients/acme.png', alt: 'Acme Corp' }, { src: '/clients/techco.png', alt: 'TechCo' }, { src: '/clients/innovate.png', alt: 'Innovate Inc' } ] return (
{/* Fast moving tech stack slider */}

Our Tech Stack

{techLogos.map((logo, index) => ( {logo.alt} ))}
{/* Slow moving client slider with blur */}

Trusted By

{clientLogos.map((logo, index) => ( {logo.alt} ))}
) } export default MultipleSliders ``` -------------------------------- ### Fully Configured React Infinite Logo Slider Source: https://context7.com/kreudev/react-infinite-logo-slider/llms.txt Shows a comprehensive example of the Slider component with all available props configured. This includes width, duration, animation direction (toRight), hover pause, and blur border effects with a specified color. ```typescript import Slider from 'react-infinite-logo-slider' function FullyConfiguredSlider() { return ( Logo 1 Logo 2 Logo 3 ) } export default FullyConfiguredSlider ``` -------------------------------- ### Usage Example: Infinite Logo Slider in React Source: https://github.com/kreudev/react-infinite-logo-slider/blob/main/README.md Demonstrates how to import and use the Slider component in a React application. It shows how to pass props like width, duration, pauseOnHover, and blurBorders, and includes examples of different slide content. ```javascript import Slider from 'react-infinite-logo-slider' const Component = () => { return ( any any2 any3
Other component...
) } export default Component ``` -------------------------------- ### React Infinite Logo Slider: Right-to-Left Animation Source: https://context7.com/kreudev/react-infinite-logo-slider/llms.txt Illustrates how to configure the Slider component for a right-to-left animation with a faster speed. This example sets `toRight` to `true` and reduces the `duration` for quicker movement. ```typescript import Slider from 'react-infinite-logo-slider' function RightToLeftSlider() { return (
React TypeScript Node.js Next.js Tailwind
) } export default RightToLeftSlider ``` -------------------------------- ### React Infinite Logo Slider with Blur Borders Source: https://context7.com/kreudev/react-infinite-logo-slider/llms.txt Demonstrates the use of blur borders for the Slider component. This example enables `blurBorders` and matches `blurBorderColor` to the background for a subtle fading effect on the edges of the slider. ```typescript import Slider from 'react-infinite-logo-slider' function BlurBorderSlider() { return (
Client 1 Client 2 Client 3
) } export default BlurBorderSlider ``` -------------------------------- ### Mixed Content Slider with Images and Custom Components (TypeScript) Source: https://context7.com/kreudev/react-infinite-logo-slider/llms.txt This example demonstrates how to create a slider that includes a mix of image elements and custom-built content, such as divs with gradients and text. It showcases the flexibility of the Slider component in rendering diverse slide content and uses various props for advanced configuration like blur borders. ```typescript import Slider from 'react-infinite-logo-slider' function MixedContentSlider() { return (
AWS

500+

Happy Clients

Docker

"Excellent service and support!"

Kubernetes
) } export default MixedContentSlider ``` -------------------------------- ### Custom Slide Component with Additional Props (TypeScript) Source: https://context7.com/kreudev/react-infinite-logo-slider/llms.txt This example shows how to create custom slides within the Slider component, allowing for additional HTML elements, custom styling, and event handlers like onClick. It utilizes TypeScript for type safety and demonstrates passing props to individual Slider.Slide elements. ```typescript import Slider from 'react-infinite-logo-slider' function CustomStyledSlider() { return ( console.log('Slide 1 clicked')} style={{ cursor: 'pointer' }} >
Partner 1 Partner 1
console.log('Slide 2 clicked')} style={{ cursor: 'pointer' }} >
Partner 2 Partner 2
) } export default CustomStyledSlider ``` -------------------------------- ### Basic React Infinite Logo Slider Usage Source: https://context7.com/kreudev/react-infinite-logo-slider/llms.txt Demonstrates a basic implementation of the Slider component in a React application. It includes importing the Slider, defining slide items with images, and setting essential props like width, duration, and hover pause. ```typescript import Slider from 'react-infinite-logo-slider' function App() { return (
Company 1 Company 2 Company 3 Company 4
) } export default App ``` -------------------------------- ### Slider Component Props Configuration Source: https://github.com/kreudev/react-infinite-logo-slider/blob/main/README.md Illustrates the various props available for configuring the Slider component. This includes setting the width, animation duration, direction, hover behavior, and blur effects. ```javascript ... ``` -------------------------------- ### TypeScript Component for Infinite Logo Slider Source: https://context7.com/kreudev/react-infinite-logo-slider/llms.txt A type-safe React component using TypeScript to implement an infinite scrolling logo slider. It defines interfaces for logo data and slider props, handles logo clicks with optional links, and renders images with hover effects. Dependencies include 'react-infinite-logo-slider' and 'react'. ```typescript import Slider from 'react-infinite-logo-slider' import { FC } from 'react' interface Logo { id: string src: string alt: string link?: string } interface LogoSliderProps { logos: Logo[] width?: string speed?: number } const LogoSlider: FC = ({ logos, width = "200px", speed = 40 }) => { const handleLogoClick = (logo: Logo): void => { if (logo.link) { window.open(logo.link, '_blank', 'noopener,noreferrer') } } return ( {logos.map((logo) => ( handleLogoClick(logo)} style={{ cursor: logo.link ? 'pointer' : 'default' }} > {logo.alt} { if (logo.link) e.currentTarget.style.transform = 'scale(1.1)' }} onMouseLeave={(e) => { e.currentTarget.style.transform = 'scale(1)' }} /> ))} ) } // Usage example function App() { const partnerLogos: Logo[] = [ { id: '1', src: '/partners/google.png', alt: 'Google', link: 'https://google.com' }, { id: '2', src: '/partners/microsoft.png', alt: 'Microsoft', link: 'https://microsoft.com' }, { id: '3', src: '/partners/amazon.png', alt: 'Amazon', link: 'https://amazon.com' }, { id: '4', src: '/partners/meta.png', alt: 'Meta' } ] return (
) } export default App ``` -------------------------------- ### Slider.Slide Component Props Source: https://github.com/kreudev/react-infinite-logo-slider/blob/main/README.md Shows the available props for the Slider.Slide component, which allows for passing arbitrary props to the individual slide elements, enabling custom styling and functionality. ```javascript ... ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.