Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

CharlesStover/react-quotes-carousel

Repository files navigation

Quotes Carousel for React Tweet

react-quotes-carousel is a dependency-free quotes carousel for React!

version minified size minzipped size downloads build

screenshot

Install

  • npm install react-quotes-carousel --save or
  • yarn add react-quotes-carousel

Props

  • animationDuration (optional)

    The duration of the sliding animation, in milliseconds. Default: 1500

  • className (optional)

    A CSS class name for the root element that contains the slider.

  • delay (optional)

    The delay before sliding to the next quote, in milliseconds. Default: 5000

  • quotes

    An array of quotes to display in the slider. Each quote should be in the format:

interface Quote {
  author: string;
  company: string;
  image: string;
  quote: string;
}
  • shuffle (optional)

    Shuffles the quotes before rendering them. Default: false

Sponsor 💗

If you are a fan of this project, you may become a sponsor via GitHub's Sponsors Program.