Skip to content

alrramezani/react-product-slider

Repository files navigation

React Product Slider · GitHub license

Demo

click here for demo

Installation

The easiest way to use react-product-slider is to install it from npm.

npm install react-product-slider

usage

import ReactProductSlider from "react-product-slider";
const items = [
  {
    src: "mockImages/slide.jpg",
    alt: "slide",
    thumbnail: "mockImages/thumbnail.jpg",
  },
];
function App() {
  return (
    <div>
      <div className="slider">
        <ReactProductSlider items={items} />
      </div>
      <div className="content">
        <h4>React Product Slider</h4>
      </div>
    </div>
  );
}
export default App;

Props

Property Required Default Example
items yes -- [{src: "slide.jpg",alt: "slide",thumbnail:"thumbnail.jpg"}]
classNamePrefix no -- my-rps
reverse no false true
initialSelected no 0 3

License

MIT licensed.

About

product slider for e-commerce websites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published