Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorExamplesUsageAccessibilityAPI
Carousel Table of ContentsPropertiestype BreakpointCustomizable<T> = { base: T; xs?: T; s?: T; m?: T; l?: T; xl?: T; xxl?: T; };PropertyAttributeDescriptionTypeDefaultactiveSlideIndex active-slide-indexDefines which slide to be active (zero-based numbering).number0alignControls align-controlsAlignment of slotted controlstype CarouselAlignControls =
'start'
'center'
'auto'
'auto'
alignHeader align-headerAlignment of heading and descriptiontype CarouselAlignHeader =
'start'
'center'
'left' 🚫
'start'
aria ariaAdd ARIA attributes.type CarouselAriaAttribute = {
  'aria-label'?: string;
}
undefined
description descriptionDefines the description used in the carousel.stringundefineddisablePagination 🚫🛠disable-paginationdeprecated since v3.0.0, will be removed with next major release, use pagination instead. If true, the carousel will not show pagination bullets at the bottom.boolean
BreakpointCustomizable<boolean>
undefined
focusOnCenterSlide focus-on-center-slideIndicates whether focus should be set on the center slide. If true, the carousel loops by individual slide; otherwise, it loops by page.booleanfalsegradientColor gradient-colorAdapts the background gradient for the left and right edge.type CarouselGradientColor =
'background-base'
'background-surface'
'none'
'none'
heading headingDefines the heading used in the carousel.stringundefinedheadingSize heading-sizeDefines the heading size used in the carousel.type CarouselHeadingSize =
'x-large'
'xx-large'
'x-large'
intl intlOverride the default wordings that are used for aria-labels on the next/prev buttons and pagination.type CarouselInternationalization = {
  'prev'?: string;
  'next'?: string;
  'first'?: string;
  'last'?: string;
  'slideLabel'?: string;
  'slide'?: string;
}
undefined
pagination 🛠paginationIf false, the carousel will not show pagination bullets at the bottom.boolean
BreakpointCustomizable<boolean>
true
rewind rewindWhether the slides should rewind from last to first slide and vice versa.booleantrueskipLinkTarget skip-link-targetDefines target of skip link (to skip carousel entries).stringundefinedslidesPerPage 🛠slides-per-pageSets the amount of slides visible at the same time. Can be set to auto if you want to define different widths per slide via CSS.type CarouselSlidesPerPage =
'auto'
1
2
3
4
5
6
7
8
9
10
BreakpointCustomizable<CarouselSlidesPerPage>
1
theme themeAdapts the color when used on dark background.type Theme =
'light'
'dark'
'auto'
'light'
trimSpace trim-spaceDetermines whether to trim spaces before/after the carousel if focusOnCenterSlide option is true.booleantruewidth widthDefines the outer spacings between the carousel and the left and right screen sides.type CarouselWidth =
'basic'
'extended'
'basic'
wrapContent 🚫wrap-contentHas no effect anymore deprecated since v3.0.0, will be removed with next major releasebooleanundefined
EventsEventDescriptionTypecarouselChange 🚫deprecated since v3.0.0, will be removed with next major release, use update event instead. Emitted when carousel's content slides.type CarouselUpdateEventDetail = {
  activeIndex: number;
  previousIndex: number;
}
CustomEvent<CarouselUpdateEventDetail>
update Emitted when carousel's content slides.type CarouselUpdateEventDetail = {
  activeIndex: number;
  previousIndex: number;
}
CustomEvent<CarouselUpdateEventDetail>
SlotsSlotDescriptionisRequiredaltPropallowedTagNames<slot name="heading"> Renders a heading above the carousel.<slot name="description"> Shows a footer section, flowing under the content area when scrollable.<slot name="controls"> Shows a sidebar area on the **start** side (**left** in **LTR** mode / **right** in **RTL** mode). On mobile view it transforms into a flyout.<slot> Default slot for the carousel slides.CSS VariablesCSS VariableDescriptiondefaultValue--p-carousel-prev-next-filter CSS Filter applied to the navigation (prev/next buttons)none
Global settingsThemeChanges the theme of the application and any Porsche Design System component. It's possible to choose between forced theme light and dark. It's also possible to use auto, which applies light or dark theme depending on the operating system settings automatically.LightDarkAuto (sync with operating system)DirectionChanges the direction of HTML elements, mostly used on<html> tag to support languages which are read from right to left like e.g. Arabic.LTR (left-to-right)RTL (right-to-left)AutoText ZoomChanges the text size and values with unit rem or em relatively. This setting can be defined in browser settings for any website or by an application itself on<html> tag. To achieve WCAG 2.2 AA compliance it's obligatory to support text zoom up to at least 200%.100%130%150%200%