Atelier UI

Search components…

Search components…

Carousel

Accessible slide carousel with prev/next, dots, drag and swipe, keyboard arrows, loop and pausable autoplay.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

CarouselProps

Also accepts all props of Omit<React.ComponentProps<"section">, "children">

PropTypeDefaultDescription
slides* requiredCarouselSlide[]——
loopbooleanfalseWrap from the last slide to the first (and back)
autoplaybooleanfalse—
intervalnumber4500Autoplay delay in ms
showDotsbooleantrue—
showArrowsbooleantrue—
labelstring"Carousel"Accessible name of the carousel

Install

$ npx shadcn@latest add https://chromotion.dev/r/carousel.json

More like this