Tabs
Switch between related views in place.
Paged track of slides with prev/next kit Buttons. One piece.
Swipe through slides. Prev and next are kit Buttons. Not Content, Item, Previous, or Next cousins.
Five slides labeled 1 to 5, horizontal, with the Slide N of M caption. Variants shows three-up and loop.
Slide 1 of 5
One full slide at a time. Arrows sit outside the track.
import { Carousel } from "agentic-ds-kit";From contracts/carousel.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| items | array | Yes | — | ReactNode slides. No CarouselCard or Slide cousins. |
| orientation | horizontal | vertical | No | horizontal | — |
| loop | boolean | No | false | — |
| align | start | center | No | start | — |
| slidesPerView | enum | No | 1 | 1 = full slide; 3 = one-third; 4 = quarter. |
| showControls | boolean | No | true | — |
| showIndex | boolean | No | false | Caption under the track: Slide N of M, aria-live polite |
| onIndexChange | function | No | — | (index: number) => void // 0-based |
| ariaLabel | string | No | Carousel | — |
Switch between related views in place.
Page navigation with previous, next, page numbers, and ellipsis, plus optional first/last, a rows-per-page Select and a page or results status for table footers.
Arrows at both ends of a row or column that is too long to fit, so people can move it along without a scrollbar.