logo

ImageSlider

A carousel with controls and options to render a collection of images.

Props:

images

Description: An array of strings containing the images url to iterate. Type: String[]. Required.

imgWidth

Description: Images width. Type: Number. Required.

imgHeight

Description: Images height. Type: Number. Required.

imgDescription

Description: Image short description. Type: String.

autoPlay

Description: Actives autoplay if true. Type: Boolean.

infiniteLoop

Description: Actives infinite loop if true. Type: Boolean.

showIndicators

Description: Display dots indicator if true. Type: Boolean.

showStatus

Description: Display the image array length and the current index if true. Type: Boolean.

interval

Description: The number in milliseconds to wait for leap for next image. Default: 2400.

Code <ImageSlider images={images} imgHeight={400} imgWidth={700} infiniteLoop autoPlay showStatus={false} />

PabloSilvaDev - © Copyright 2022