Registry Index

Search the catalog

Type to search items across every indexed registry, or pick a page.

ComponentReactregistry:ui4 dependencies

Carousel

carousel

Slider/carousel on embla-carousel-react with horizontal or vertical orientation, keyboard support and prev/next controls built from ai2 Button. Exports Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext.

Live, loading

Starting the live preview…

Rendered from its demo Carousel Demo. Runs in a sandboxed frame on a separate origin, in its registry's own theme. Mounted with no props — an item that paints an empty box is given its name as text, and some items need input to show anything.

Notes from the author

Wrap slides in CarouselItem inside CarouselContent; set basis on items for multi-slide views. Pass opts for embla options and plugins for autoplay. setApi exposes the embla api.
4 other registries

Similar components

Other registries' take on carousel.

1 demo

See it in use

Files this registry ships to demonstrate the item. They are indexed and installable, but they don't count as components of their own.

Usage example for the ai2 carousel component.

@ai2

More from @ai2