Carousel Item
<cs-carousel-item>
Carousel items represent individual slides within a carousel.
This component must be used as a child of <cs-carousel>. Please see the Carousel docs to see examples of this component in action.
API
Importing
If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick this component, use one of the following snippets.
import '@cruglobal/cornerstone-components/components/carousel-item/carousel-item.js';
import './cornerstone/components/carousel-item/carousel-item.js';
import CsCarouselItem from '@cruglobal/cornerstone-components/react/carousel-item/index.js';
Slots
Learn more about using slots.
| Name | Description |
|---|---|
| (default) | The carousel item's content.. |
CSS Custom Properties
Learn more about CSS custom properties.
| Name | Description | Default |
|---|---|---|
--aspect-ratio | The slide's aspect ratio. Inherited from the carousel by default. | — |

