react-lightweight-image-slider
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

npm type definitions

Lightweight Image Slider

A Simple and lightweight image slider in react.

Demo


Edit q8wl1joow9

Installation

> yarn add react-lightweight-image-slider
> npm i react-lightweight-image-slider

Usage

import React from 'react';
import ImageSlider from "react-lightweight-image-slider";

function App() {

  const images = [
    'https://picsum.photos/id/1/900/900',
    'https://picsum.photos/id/2/900/900',
    'https://picsum.photos/id/3/900/900',
    'https://picsum.photos/id/4/900/900',
    'https://picsum.photos/id/5/900/900',
    'https://picsum.photos/id/6/900/900',
    'https://picsum.photos/id/7/900/900',
    'https://picsum.photos/id/8/900/900',
    'https://picsum.photos/id/9/900/900',
  ];


  return (
    <div>
      <ImageSlider
        images={images}
      />
    </div>
  );
}

/react-lightweight-image-slider/

    Package Sidebar

    Install

    npm i react-lightweight-image-slider

    Weekly Downloads

    11

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    36.9 kB

    Total Files

    14

    Last publish

    Collaborators

    • ashwoolford