<cs-carousel-item>
ExperimentalMediaSince 0.1

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.

npm Self-Hosted React
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.

NameDescription
(default)The carousel item's content..

CSS Custom Properties

Learn more about CSS custom properties.

NameDescriptionDefault
--aspect-ratioThe slide's aspect ratio. Inherited from the carousel by default.