Carousel
A compound component for cycling through a series of slides with keyboard navigation, dot indicators, and optional auto-play.
Installation
npx dafink-ui add carouselDemo
1
2
3
4
5
Slide 1 of 0
Composition
<Carousel>
</Carousel>
Props
| Name | Type | Default | Description |
|---|---|---|---|
| loop | boolean | false | Wraps from the last slide back to the first (and vice versa). |
| autoPlay | boolean | false | Automatically advances slides at the specified interval. |
| interval | number | 4000 | Milliseconds between auto-advances when autoPlay is enabled. |
| aria-label | string | "Carousel" | Accessible name for the carousel region landmark. Override with a descriptive value. |
| className | string | "" | Additional classes on the root element. |