react-packages

@react-packages/simple-images-slider

It’s React component to show an images slider. The images slider displays the list of images but we can only see some few number of all images at a time. To see the other images, we do sliding. This kind of component is also called “carousel”.

@react-packages/simple-images-slider is named “simple” because of without animation when sliding the images. This component provides two buttons for sliding the images.

The following video shows how it works:
Slider Video

How to use it

To use it with the default options, follow the example below:

import SimpleImagesSlider from '@react-packages/simple-images-slider';
...
<SimpleImagesSlider iamges={imageSrcArray}  ... />
...

If you want change some options, follow the example below:

import {createComponent} from '@react-packages/simple-images-slider';
const SimpleImagesSlider = createComponent({
    //options
});
...
<SimpleImagesSlider iamges={imageSrcArray}  ... />
...

The complete example, you can find here.

createComponent options

createComponent has one parameter whose object type. The object has some properties which define the options for the component. The properties are (all properties are optional):

SimpleImagesSlider props

Only images is required, the other ones are optional.