Urban Dreams
Neon Nights
Desert Whispers
Installation
Run the following command
npx shadcn@latest add https://ui.aceternity.com/registry/carousel.json
Props
Carousel Component Props
Prop | Type | Required | Description |
---|---|---|---|
slides | SlideData[] | Yes | Array of slide objects containing title, button text, and image source |
SlideData Interface
Property | Type | Required | Description |
---|---|---|---|
title | string | Yes | Title text for the slide |
button | string | Yes | Text to display on the slide's button |
src | string | Yes | Image source URL for the slide |
Slide Component Props
Prop | Type | Required | Description |
---|---|---|---|
slide | SlideData | Yes | Object containing the slide data |
index | number | Yes | Current index of the slide |
current | number | Yes | Index of the currently active slide |
handleSlideClick | (index: number) => void | Yes | Function to handle slide click events |
CarouselControl Component Props
Prop | Type | Required | Description |
---|---|---|---|
type | string | Yes | Type of control ("previous" or "next") |
title | string | Yes | Accessibility title for the control button |
handleClick | () => void | Yes | Function 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.
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