← ui-lab

Carousel

A carousel shows one slide at a time with previous / next controls that wrap around. The container is announced as a carousel and each slide as a slide (via aria-roledescription) with an “N of M” position label, so it is navigable and intelligible to assistive technology rather than a generic group of boxes.

Preview

First slide

Installation

npx shadcn@latest add https://ui.publictheta.com/r/carousel.json

Conformance

This component conforms to the @publictheta/ui-spec carousel specification. Run the suite against any implementation with pnpm conformance.