3.2.1 • Published 6 years ago

launch-react-bootstrap-carousel v3.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

react-bootstrap-carousel

Travis Coverage Status Version license Donloads

This project support carousel components built with React.

Install

npm i --save react-bootstrap-carousel

Getting Started

import ReactBootstrapCarousel from "react-bootstrap-carousel";
import "bootstrap/dist/css/bootstrap.css";
import "react-bootstrap-carousel/dist/react-bootstrap-carousel.css";

Bootstrap@3.3.7 demo

Bootstrap@4.3 demo

Properties

PropsTypeDescriptionDefault
versionnumberBootstrap version 3 | version 43
defaultActiveIndexnumber0
slideshowSpeednumberThe amount of time to delay between automatically cycling an item7000
animationbooleanwhether to show animationtrue
autoplaybooleanWhether to scroll automaticallytrue
wrapbooleanWhether the carousel should cycle continuously or have hard stopstrue
indicatorsbooleanWhether to show the dots at the bottom of the gallerytrue
leftIconReactNode-
rightIconReactNode-
onSelectfunction(value: number )Callback function called after the current index changes-
classNamestringcarousel-fade | ""-
pauseOnVisibilitybooleanStop autoplay when visibilitychangefalse

Methods

NameDescription
slidePrevChange current slide to previous slide
slideNextChange current slide to next slide
goToSlideChange current slide to given slide number