generated:catalog.entry.carousel.title
generated:catalog.entry.carousel.description
@xngui/components/carousel@xngui/components/carouselchrome:demo.section
chrome:demo.preview
import { Component } from '@angular/core';
import { XCarousel, XCarouselSlide } from '@xngui/components/carousel';
@Component({
selector: 'app-example',
imports: [XCarousel, XCarouselSlide],
templateUrl: './carousel.component.html',
})
export class ExampleComponent {}
chrome:demo.events.title
chrome:demo.events.empty
chrome:demo.api.title
x-carousel
chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
loopbooleantrueWhen true, wraps from last to first slide (and vice versa).
showControlsbooleantrueShows previous/next buttons and dot indicators when there are multiple slides.
swipeEnabledbooleantrueWhen true, horizontal swipes advance slides on touch devices.
autoplayMsnumber | nullnullAutoplay interval in ms; `null` disables. Pauses while hovered, focused, or when reduced motion is preferred.
ariaLabelstring—Accessible name for the carousel region — falls back to the `carousel.ariaLabel` i18n key.
previousLabelstring—`aria-label` for the previous slide button — falls back to `carousel.previous`.
nextLabelstring—`aria-label` for the next slide button — falls back to `carousel.next`.
goToSlideLabelstring—Prefix for each dot button's `aria-label` — falls back to `carousel.goToSlide`.