Skip to content

nabaraj/react-carousel-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Carousel Component

GitHub issuesGitHub forksGitHub starsGitHub license

Install React Carousel Component by

npm i react-carousel-library

Then add carousel like below example.

<Carousel autoScroll={false} showArrowBg={true} sliderType="grid">
        <img src="https://via.placeholder.com/300X400&text=slide1" alt="" />
        <img src="https://via.placeholder.com/300X400&text=slide2" alt="" />
        <img src="https://via.placeholder.com/300X400&text=slide3" alt="" />
        <img src="https://via.placeholder.com/300X400&text=slide4" alt="" />
</Carousel>

This carousel currently have two view options “fullScreen” and “grid”

There are some options to control display and functionality from parent components as props they are :

autoScroll={false} (enable disable autoscroll)
showArrowBg={true} enable arrowbox (may be this option we can replace)
sliderType=”grid” (type of slide fullscreen or grid to control the slider)
classes=”” To add class

I have written a step by step guideline to write this carousel here

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •