Special/Carousel

Carousel

A responsive slide carousel with arrow navigation and dot indicators. Slides transition on a sliding track, with no fixed pixel widths so it adapts to any container.

import { Carousel } from "@animui/ui"

Basic

Slide 1
Slide 2
Slide 3
Slide 4

Autoplay, no dots

Auto 1
Auto 2
Auto 3
Auto 4

Props

PropTypeDefaultDescription
childrenReact.ReactNode[]Array of slide contents.
autoPlaybooleanfalseAutomatically advances to the next slide.
autoPlayIntervalnumber5000Milliseconds between automatic slide transitions.
showArrowsbooleantrueShows the previous/next arrow buttons.
showDotsbooleantrueShows the dot indicators for direct slide navigation.
classNamestringAdditional classes for the outer container (set height here).

Accessibility

  • Arrow buttons have descriptive aria-labels.
  • Dot indicators expose aria-current for the active slide.
  • Arrows and dots are positioned with viewport-safe offsets so they never overflow on narrow screens.
© 2026 Steal Shadow. MIT License.Report an issue