Carousel

Free

A carousel component built on Embla Carousel with motion and swipe support. Provides horizontal and vertical orientation, keyboard navigation, plugin support, and full access to the Embla API for building custom controls.

Installation

Install via CLI

npx @moontra/moonui-cli add carousel

Usage

1
2
3
4
5

Examples

Basic Carousel

A horizontal carousel with previous and next controls. Slides can be swiped with a pointer or navigated with the arrow keys while focused.

1
2
3
4
5

Vertical Orientation

Set orientation to vertical to scroll slides up and down. Give CarouselContent an explicit height and size the items with basis utilities to show multiple slides at once.

1
2
3
4
5

Slide Indicators with setApi

Pass a setApi callback to receive the Embla API instance and build custom controls, such as dot indicators and a slide counter driven by the select event.

1
2
3
4
5

Interactive Slide Content

Slides accept any content, including interactive elements like buttons. This example combines looping via opts with multiple items per view using basis utilities.

New$89

Aurora Desk Lamp

Popular$149

Nimbus Keyboard

Sale$59

Orbit Mouse

New$79

Lunar Monitor Stand

Popular$199

Eclipse Headphones