Skip to content
Interactive

DragCarousel

Throw the strip and it glides, leans with its speed and lands on a slide. Works by mouse, touch, arrow keys and dots. A click on a link inside still works, a drag does not fire it.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
itemsDragCarouselItem[]—Slides: id, label and content.
itemWidthnumber260Slide width in pixels.
gapnumber16Space between slides in pixels.
accentstring"#a78bfa"Colour of the live dot.
labelstring"Carousel"Read by screen readers.
classNamestring""On the wrapper. Set the width here.