Carousel
Scroll-snap slide gallery with prev/next, dots and keyboard nav.
Import
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselDots } from "@cooud-ui/ui";
npx cooud-ui add carousel
Examples
API Reference
Generated from the component's exported types.
CarouselProps
Extends Omit<HTMLAttributes<HTMLDivElement>, "onScroll">
| Prop | Type | Default | Description |
|---|---|---|---|
opts | CarouselOptions | — | Tuning for snap alignment and looping. |
children | ReactNode | — | — |
CarouselContentProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | — |
CarouselItemProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | — |
CarouselPreviousProps
Extends ButtonHTMLAttributes<HTMLButtonElement>
No own props — see the extended type above for available props.
CarouselNextProps
Extends ButtonHTMLAttributes<HTMLButtonElement>
No own props — see the extended type above for available props.
CarouselDotsProps
Extends HTMLAttributes<HTMLDivElement>
No own props — see the extended type above for available props.