Introducing Aceternity UI Pro - 70+ premium component packs and templates to build amazing websites.
Logo

Carousel

A customizable carousel with microinteractions and slider.

Open in
  • Mystic Mountains

    Mystic Mountains

  • Urban Dreams
  • Neon Nights
  • Desert Whispers

Installation

Run the following command

npx shadcn@latest add https://ui.aceternity.com/registry/carousel.json

Props

PropTypeRequiredDescription
slidesSlideData[]YesArray of slide objects containing title, button text, and image source

SlideData Interface

PropertyTypeRequiredDescription
titlestringYesTitle text for the slide
buttonstringYesText to display on the slide's button
srcstringYesImage source URL for the slide

Slide Component Props

PropTypeRequiredDescription
slideSlideDataYesObject containing the slide data
indexnumberYesCurrent index of the slide
currentnumberYesIndex of the currently active slide
handleSlideClick(index: number) => voidYesFunction to handle slide click events

CarouselControl Component Props

PropTypeRequiredDescription
typestringYesType of control ("previous" or "next")
titlestringYesAccessibility title for the control button
handleClick() => voidYesFunction to handle control click events

Build websites faster and 10x better than your competitors with Aceternity UI Pro

With the best in class components and templates, stand out from the crowd and get more attention to your website. Trusted by founders and entrepreneurs from all over the world.

Go Pro
I'd highly recommend working with Manu on a site redesign. We came to Manu with a basic website shell. Manu quickly took our rough concept and transformed it into a polished, user-friendly website....

Ray Thai

Head of Product at Fireworks

A product by Aceternity
Building in public at @mannupaaji