layout/@mihcm/ui·v0.21.0·stable
Carousel
Composable carousel powered by Embla. Supports horizontal/vertical orientation, loop, and prev/next controls.
Props
The full prop API for Carousel. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Scroll direction of the carousel. | 0.6.0 |
opts | EmblaOptionsType | — | Embla Carousel options (loop, align, etc.). | 0.6.0 |
plugins | EmblaPluginType[] | — | Embla plugins (e.g. autoplay). | 0.6.0 |
setApi | (api: CarouselApi) => void | — | Callback to receive the Embla API instance. | 0.6.0 |
className | string | — | Additional Tailwind classes on each sub-component. | 0.6.0 |
Import
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from '@mihcm/ui/Carousel';