# Carousel Item

**Full documentation:** https://webawesome.com/docs/components/carousel-item


`<wa-carousel-item>` Since 2.0 Experimental

A carousel item represent a slide within a carousel.

This component must be used as a child of `<wa-carousel>`. Please see the [Carousel docs](https://webawesome.com/docs/components/carousel) to see examples of this component in action.

## Importing

Autoloading components via [projects](https://webawesome.com/docs/#using-a-project) is the recommended way to import components. If you prefer to do it manually, use one of the following code snippets.

\*\*CDN\*\*

Let your project code do the work! [Sign up for free](https://webawesome.com/signup) to use a project with your very own CDN — it's the fastest and easiest way to use Web Awesome.

\*\*npm\*\*

To manually import this component from NPM, use the following code.

```js
import '@awesome.me/webawesome/dist/components/carousel-item/carousel-item.js';
```

\*\*React\*\*

To manually import this component from React, use the following code.

```js
import WaCarouselItem from '@awesome.me/webawesome/dist/react/carousel-item';
```

## Slots

Learn more about [using slots](https://webawesome.com/docs/usage/#slots).

| Name | Description |
| --- | --- |
| (default) | The carousel item's content.. |

## Attributes & Properties

Learn more about [attributes and properties](https://webawesome.com/docs/usage/#attributes-and-properties).

| Name | Description | Reflects |
| --- | --- | --- |
| \`css\` | \`CSSResultGroup \\| undefined\` One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. Type Default styles | | |

## CSS custom properties

Learn more about [CSS custom properties](https://webawesome.com/docs/customizing/#custom-properties).

| Name | Description |
| --- | --- |
| \`--aspect-ratio\` | The slide's aspect ratio. Inherited from the carousel by default. |

**Need a hand?** Report a bug Ask for help