39 · carouselsMedia & Data Display5 Variations
Carousels and Sliders
Five touch- and keyboard-accessible horizontal carousel architectures using native CSS scroll snap (`overscroll-x-contain`) and active controls: full-width autoplay hero, multi-card responsive slider, centered active card, testimonial slider, and thumbnail gallery carousel.
carouselsliderscroll-snapautoplaygalleryswipe
Full-Width Carousel
carousels/full-width-carousel
Loading variation carousels/full-width-carousel...
Component Information
Single-slide viewport-width snap carousel with optional autoplay, pause on hover/focus, Previous/Next buttons, touch swipe, and active numbered markers.
- Variation ID
- carousels/full-width-carousel
- Motion Engine
- css
- Source File
- src/labs/components/components/carousels/variations/full-width-carousel.tsx
Reduced Motion & Accessibility
Disables smooth scroll transitions and autoplay cycling under prefers-reduced-motion.
- Exposes aria-roledescription="carousel" and per-slide aria-label="N of M".
- Autoplay pauses automatically on pointer hover and keyboard focus-within.
Dependencies
- lucide-react^0.553.0Required
ChevronLeft, ChevronRight, Play, and Pause icons
Usage Documentation
import { FullWidthCarousel } from '@/src/labs/components/components/carousels';
export function ShowcaseCarousel() {
return <FullWidthCarousel />;
}Props API (5)
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | — | Carousel heading. |
| slides | readonly CarouselSlideItem[] | — | Configurable slide items. |
| autoPlay | boolean | false | Starts optional autoplay timer when motion is allowed. |
| autoPlayIntervalMs | number | 4500 | Milliseconds between slides. |
| loop | boolean | true | Enables wrap-around Previous/Next cycling. |