Carousel API
import { Carousel } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
autoPlay | boolean | |
children | React.ReactNode | |
controlsAlign | CarouselControlsAlign | |
controlsPosition | CarouselControlsPosition | |
controlsVariant | CarouselControlsVariant | |
controlsVisibility | CarouselControlsVisibility | |
defaultIndex | number | |
direction | CarouselDirection | |
index | number | |
indicatorsVariant | CarouselIndicatorsVariant | |
interval | number | |
label | string | |
loop | boolean | |
nextLabel | string | |
onIndexChange | (index: number) => void | |
pauseOnHover | boolean | |
previousLabel | string | |
showControls | boolean | |
showIndicators | boolean | |
transition | CarouselTransition |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Carousel.Item props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode | |
label | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).