Carousels donโt automatically normalize slide dimensions. As such, you
may need to use additional utilities or custom styles to appropriately
size content. While carousels support previous/next controls and
indicators, theyโre not explicitly required. Add and customize as you
see fit.
First slide label
Nulla vitae elit libero, a pharetra augue mollis interdum.
Second slide label
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Third slide label
Praesent commodo cursus magna, vel scelerisque nisl consectetur.
If set to "hover", pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave. If set to false, hovering over the carousel won't pause it.
On touch-enabled devices, when set to "hover", cycling will pause on touchend (once the user finished interacting with the carousel) for two intervals, before automatically resuming. Note that this is in addition to the above mouse behavior.
Override the default button icon for the "previous" control
prevLabel
string
'Previous'
Label shown to screen readers only, can be used to show the previous element
in the carousel.
Set to null to deactivate.
slide
boolean
true
Enables animation on the Carousel as it transitions between slides.
touch
boolean
true
Whether the carousel should support left/right swipe interactions on touchscreen devices.
wrap
boolean
true
Whether the carousel should cycle continuously or have hard stops.
bsPrefix
string
'carousel'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
import Carousel from 'react-bootstrap/Carousel'Copy import code for the Carousel component
Name
Type
Default
Description
as
elementType
<div>
Set a custom element for this component
interval
number
The amount of time to delay between automatically cycling this specific item. Will default to the Carousel's interval prop value if none is specified.
bsPrefix
string
'carousel-item'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
import Carousel from 'react-bootstrap/Carousel'Copy import code for the Carousel component
Name
Type
Default
Description
as
elementType
<div>
You can use a custom element type for this component.
bsPrefix required
string
'carousel-caption'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.