Carousel
This component is used to play a slideshow
Carousel is a sequence of slides. The user can switch slides manually or they can switch automatically after some time (via duration
prop). Switching slides is accompanied by animation.
This component was added in Altrone 2.0
Ref object
Carousel component supports receiving state and managing the component via ref
property. In case of Carousel you can programmatically navigate to another slide.
CarouselRef
Slides
CarouselItem
Altrone Options
This feature was added in Altrone 2.1
In Altrone 2.1, a new feature (called as Altrone Options) was introduced, allowing users to define default values for certain properties within this component. To achieve this, you can leverage either global.reduceMotion
or carousel.reduceMotion
, effectively deactivating transitions for all carousels throughout your application.
Properties
History
Altrone 2.1
:added
global.reduceMotion
andcarousel.reduceMotion
Altrone Option
Altrone 2.0
: initial release
Last updated