Search documentation

Find a component or a docs page

Carousel

A carousel with motion and swipe built using Embla.

Usage

Example

Carousel is a region, and a region needs a name: give it an aria_label (or aria_labelledby pointing at a visible heading). Previous and Next disable at the first and last slide.

Sizes

Spacing

Orientation

Loop

options: takes JSON-compatible Embla options. With loop: true the carousel wraps from the last slide to the first, so Previous and Next never disable.

Installation

Components

ComponentBuilt usingSource
CarouselPhlex
CarouselContentPhlex
CarouselDocsPhlex
CarouselItemPhlex
CarouselNextPhlex
CarouselPreviousPhlex
CarouselControllerStimulus JS