Carousel
A row of slides that moves one at a time, by its arrow buttons, a swipe or the arrow keys, built on Embla.
Usage
Examples
Orientation
orientation sets the way the slides move: horizontal, the default, or vertical, up and down in a height set on CarouselContent.
Dots
CarouselDots marks every place the carousel can stop with a dot, the current one drawn long, and moves there when one is pressed.
Max
max shows at most that many of CarouselDots' dots, the window following the current place, beside one with a dot for every place as it has by default.
Moving by itself
With an interval in milliseconds it moves to the next slide by itself while at least 30% of it is on screen and no pointer or focus is on it, wrapping round from the last when it loops, and stays still for anyone who asks for less motion.
Fading
With fade the slides crossfade in place instead of sliding across, on Embla's own fade plugin; the dots, the arrow keys and an interval move it as they move a sliding one.
API Reference
Carousel
CarouselProps · components/Carousel/Carousel.types.tsCarouselContent
CarouselContentProps · takes the props of <div>CarouselItem
CarouselItemProps · takes the props of <div>CarouselPrevious
CarouselPreviousProps · also takes the props of <button>CarouselNext
CarouselNextProps · also takes the props of <button>CarouselDots
CarouselDotsProps · also takes the props of <div>It also takes the props of <div>.