Skip to content
Premium & Brand

Carousel

Scroll-snap slide gallery with prev/next, dots and keyboard nav.

Import

tsx
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselDots } from "@cooud-ui/ui";
bash
npx cooud-ui add carousel

Examples

API Reference

Generated from the component's exported types.

CarouselProps

Extends Omit<HTMLAttributes<HTMLDivElement>, "onScroll">

PropTypeDefaultDescription
opts
CarouselOptionsTuning for snap alignment and looping.
children
ReactNode

CarouselContentProps

Extends HTMLAttributes<HTMLDivElement>

PropTypeDefaultDescription
children
ReactNode

CarouselItemProps

Extends HTMLAttributes<HTMLDivElement>

PropTypeDefaultDescription
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.