Skip to main content

Carousel

Show pictures one at a time, moved by swiping, dragging, the arrow keys or the dots.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
childrenReactNode-The slides, one per child, such as pictures or cards.
The slides, one per child, such as pictures or cards.
ariaLabelstringCarouselNames the carousel for screen readers.
Names the carousel for screen readers.
loopbooleanfalseWraps from the last slide back to the first.
Wraps from the last slide back to the first.
aspectRatiostring16 / 10Each slide's width over its height, such as 16 / 10.
Each slide's width over its height, such as 16 / 10.
dotsbooleantrueDraws the dots under the slides.
Draws the dots under the slides.
shapenone | rounded | pillrounded
classNamestring-
focusboolean | stringtrue