# SiCarouselComponent documentation

**Kind:** component

**Selector:** `si-carousel`

```
import { SiCarouselComponent } from '@siemens/element-ng/carousel';
```

A carousel component for displaying slides with navigation controls and auto-play.

Features horizontal scrolling with snap behavior, pagination dots, and ARIA accessibility. Suitable for dashboards, image galleries, and content showcases.

Example:

```typescript
import { SiCarouselComponent, SiCarouselItemDirective } from '@siemens/element-ng/carousel';

@Component({
  imports: [SiCarouselComponent, SiCarouselItemDirective],
  template: `
    <si-carousel>
      <div siCarouselItem><h2>Slide 1</h2></div>
      <div siCarouselItem><h2>Slide 2</h2></div>
      <div siCarouselItem><h2>Slide 3</h2></div>
    </si-carousel>
  `
})
export class MyComponent {}
```

```
component SiCarouselComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [ariaRole](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L121-L121>) | `"region" \| "group"` | `'region'` | Aria role of the carousel element. Can be set to 'region' or 'group' depending on the desired accessibility semantics. |
| [autoPlay](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L116-L116>) | `number \| boolean` | `false` | Enables or configures auto-play for the carousel. When set to `true`, the carousel automatically navigates to the next slide every 5000 milliseconds (5 seconds). Pass a positive number to set a custom interval in milliseconds. Pass `false` to disable auto-play. |
| [carouselRoleDescription](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L177-L179>) | `TranslatableString` | `` $localize`:@@SI_CAROUSEL.ROLE_DESCRIPTION:carousel` `` | Role description for the carousel container, used for accessibility purposes. |
| [hidePageControls](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L109-L109>) | `boolean` | `false` | Controls whether pagination controls are shown. When `true`, the carousel shows one slide per page and hides pagination controls. |
| [nextButtonAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L140-L140>) | `TranslatableString` | `` $localize`:@@SI_CAROUSEL.NEXT:Next slide` `` | Aria label for the next button, used for accessibility purposes. |
| [pauseButtonLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L168-L168>) | `TranslatableString` | `` $localize`:@@SI_CAROUSEL.PAUSE:Pause` `` | Label for the pause button when autoplay is active. |
| [playButtonLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L159-L159>) | `TranslatableString` | `` $localize`:@@SI_CAROUSEL.PLAY:Play` `` | Label for the play button when autoplay is paused. |
| [previousButtonAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L130-L132>) | `TranslatableString` | `` $localize`:@@SI_CAROUSEL.PREVIOUS:Previous slide` `` | Aria label for the previous button, used for accessibility purposes. |
| [slidePageAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L148-L150>) | `TranslatableString` | `` $localize`:@@SI_CAROUSEL.SLIDE_PAGE:Slide {{page}} of {{total}}` `` |  |
| [slideRoleDescription](<https://github.com/siemens/element/blob/main/projects/element-ng/carousel/si-carousel.component.ts#L187-L189>) | `TranslatableString` | `` $localize`:@@SI_CAROUSEL.SLIDE_ROLE_DESCRIPTION:Slide` `` | Role description for each slide, used for accessibility purposes. |

### Types Documentation

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
