Skip to content

Carousel

One slide in view, the rest a gesture away. Arrows, dots, and keyboard come standard; autoplay stays off unless you ask.

Example

<Carousel label="Feature tour">
  <div><strong>Slide 1.</strong> Meet the library.</div>
  <div><strong>Slide 2.</strong> Tokens everywhere.</div>
  <div><strong>Slide 3.</strong> Ship it.</div>
</Carousel>

Autoplay

Pass autoplay with an optional interval (ms). It pauses on hover, focus, and reduced motion.

Props

PropTypeDefaultDescription
labelstringCarouselRegion name.
autoplaybooleanfalseAdvance automatically.
intervalnumber5000Autoplay delay ms.

Accessibility