Skip to Content

Carousel

A carousel displays a set of slides that users can scroll through.

1
2
3

Dots

1
2
3

Component props

NameTypeDescription
orientationstring"horizontal" | "vertical" (default: "horizontal")
loopbooleanLoops back to the first slide
showArrowsbooleanShows previous/next arrows (default: true)
showDotsbooleanShows dot indicators
optsEmblaOptionsAdditional Embla carousel options
onIndexChange(index: number) => voidCalled when the selected slide changes

CarouselItem

Accepts standard HTML div props. Each item renders as a slide.