1.1.2 • Published 3 years ago

reactjs-simple-slider v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

React Simple Image Slider

A simple and reusable image slider for React (Demo)

Installation

The package can be installed via NPM:

npm i reactjs-simple-slider

Usage

Import Slider for usage :

import { Slider } from "reactjs-simple-slider";

Define your slider and config :

<Slider
  objectFit="contain"
  images={[
    "https://fakeimg.pl/200x50/",
    "https://fakeimg.pl/200x50/ff0000/",
    "https://fakeimg.pl/200x50/0000ff/",
  ]}
/>

User guide

Prop nameDescriptionDefault valueExample values
widthWidth of slider200px
heightHeight of slider500px
objectFitThe objectFit property is used to specify how an images should be resized to fit its containerundefinedfill , contain , cover , none , scale-down , undefined
imagesList of images to showstring[]{"image1", "image2", "image3"}
leftArrowYou can customize arrow left by pass string or a react component or functionReact Component or string
rightArrowYou can customize arrow right by pass string or a react component or functionReact Component or string
infiniteLoopSet auto change slidefalsetrue , false
intervalDuration of change images slider time5000Millisecond
1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago