Effects & Media /
newCarousel
Zero-dependency scroll-snap carousel: edge-aware arrows, dots, drag, keyboard, optional autoplay, and responsive slides-per-view.
Examples
Simple — one slide per view
Pass arrows / dots and drop slides as children. Arrows hide at the ends (non-loop default).
Basic carousel
Responsive slidesPerView
1 on mobile, 2 on sm, 3 on lg. Resize the window.
Cards carousel
Loop + autoplay (compound API)
Compose the parts yourself. Loop enables wrap + autoplay; autoplay pauses on hover/focus and under reduced motion.
Hero carousel
Props (root)
Compound parts
Accessibility
- Root is role='group' aria-roledescription='carousel'; each slide is a labelled slide group.
- Arrow keys move between slides; Home/End jump to the ends.
- Autoplay is disabled under prefers-reduced-motion and pauses on hover/focus.
- Pass aria-label to describe the carousel's content.