# KptCarousel (kpt-carousel) A slide carousel (generic). Import: `import { KptCarousel } from '@konce-pt/angular';` Data through `items`, the slide template through projection: ``. ## Inputs / model - `items`: T[] - the slide data - `activeIndex`: model (default 0) - the two-way index of the active slide - `label`: string - the region name; empty = `carousel.label` - `loop`: boolean (default true) - the arrows wrap from the last slide to the first and back ## Content projection - `` - the template for a single slide; context: `$implicit` = the item, `index`. ## Methods - `next()`, `prev()`, `goTo(index)` ## Example ## Tokens The active dot `--kpt-color-primary`; the arrows `--kpt-color-surface` (80% via `color-mix`, solid on hover) with `--kpt-elevation-2`; the slide transition `--kpt-motion-duration-base`. ## Looping By default the arrows wrap: "next" on the last slide goes to the first one and "previous" on the first goes to the last; the track rewinds across the slides in between. `loop="false"` stops the arrows at the ends instead - for steps that have a beginning and an end (onboarding). There is no autoplay either way. ## Accessibility The WAI-ARIA carousel pattern without autoplay. The root is `role="region"` with `aria-roledescription` from `carousel.roleCarousel` ("carousel") and a name from `label` or `carousel.label`. Each slide is `role="group"` with `aria-roledescription` from `carousel.roleSlide` and a name from `carousel.slideOf` ("Slide 2 of 4"); slides outside the view are `inert` and `aria-hidden`, so Tab never lands on an invisible link. The track is `aria-live="polite"`, so the slide that comes in is announced. With `loop` off the arrows use `aria-disabled` at the ends instead of `disabled`, so they keep the focus; the active dot carries `aria-current`, and every dot has a 24 px target (WCAG 2.5.8) with an 8 px visible dot. The transition is off under `prefers-reduced-motion`; in RTL the track and the chevrons follow the reading direction (`:dir(rtl)`).