UI.MD

Search documentation

Search for components, guides, and tokens

Carousel

A carousel with motion and swipe, built on Embla. Supports horizontal and vertical orientation, keyboard navigation, and autoplay plugins.

Installation

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

Usage

import {
  Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext,
} from "@/components/ui/carousel"

Examples

Default

1
2
3
4
5

Multiple items

1
2
3
4
5
6
7
8