0.2.5 • Published 2 years ago

react-product-slider v0.2.5

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

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

PropertyRequiredDefaultExample
itemsyes--[{src: "slide.jpg",alt: "slide",thumbnail:"thumbnail.jpg"}]
classNamePrefixno--my-rps
reversenofalsetrue
initialSelectedno03

License

MIT licensed.

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago