Skip to main content
Version: Next

Carousel API

import { Carousel } from '@editora/ui-react';

Props​

PropTypeDescription
autoPlayboolean
childrenReact.ReactNode
controlsAlignCarouselControlsAlign
controlsPositionCarouselControlsPosition
controlsVariantCarouselControlsVariant
controlsVisibilityCarouselControlsVisibility
defaultIndexnumber
directionCarouselDirection
indexnumber
indicatorsVariantCarouselIndicatorsVariant
intervalnumber
labelstring
loopboolean
nextLabelstring
onIndexChange(index: number) => void
pauseOnHoverboolean
previousLabelstring
showControlsboolean
showIndicatorsboolean
transitionCarouselTransition

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Carousel.Item props​

PropTypeDescription
childrenReact.ReactNode
labelstring

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).