0.0.8 • Published 1 year ago

@satya-ranjon-sharma/react-imageslider v0.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

How to Installation

run

npm install @satya-ranjon-sharma/react-imageslider
                or
npm i @satya-ranjon-sharma/react-imageslider
                or
yarn add @satya-ranjon-sharma/react-imageslider

How to Use

import ImageSlider from "@satya-ranjon-sharma/react-imageslider/dist/imageSlider";

const slider = [
  {
    url: "http://localhost:5173/1.jpg",
  },
  {
    url: "http://localhost:5173/2.jpg",
  },
  {
    url: "http://localhost:5173/3.jpg",
  },
];

const style = {
  width: "100%",
  height: "500px",
  margin: "0 auto",
};
const App = () => {
  return (
    <h1>
      <ImageSlider slider={slider} style={style} />
    </h1>
  );
};

export default App;