Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

react-product-slider

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-product-slider

product slider for e-commerce websites

latest
Source
npmnpm
Version
0.2.5
Version published
Maintainers
1
Created
Source

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.

Keywords

react

FAQs

Package last updated on 09 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts