1. Kikita UI
  2. Components
  3. Data and Identity
  4. Carousel
  5. Playground
Skip to content
Kikita UI
  • Installation
  • Theming
  • Tokens
  • Typography
  • Density
  • Accessibility
  • Migrating to 2.0
  • Internationalization
  • Defaults
  • Structural icons
  • Auto Focus
  • Forms
  • AI Support
  • Package Smoke
  • Button
  • Link
  • Icon Button
  • Menu
  • Command Palette
  • Field
  • Input
  • Color Input
  • Select
  • Combobox
  • Date Picker
  • Time Picker
  • Calendar
  • Calendar Range
  • File Upload
  • Segmented
  • Slider
  • Number Input
  • OTP Input
  • Textarea
  • Checkbox
  • Switch
  • Radio
  • Group
  • Badge
  • Loader
  • Skeleton
  • Tooltip
  • Toast
  • Empty State
  • Alert
  • Progress
  • Card
  • Tabs
  • Accordion
  • Breadcrumbs
  • Popover
  • Dialog
  • Media Viewer
  • Drawer
  • Splitter
  • Dropdown
  • Separator
  • Stepper
  • Icon
  • Avatar
  • Table
  • Pagination
  • Line Chart
  • Bar Chart
  • Scatter Chart
  • Donut Chart
  • Carousel
  • Chip
  • Scrollbar
  • Tree

Carousel — Playground

px
Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
messages
State
html.html
<kui-carousel [(index)]="slide">
  <div kuiCarouselSlide>Slide 1</div>
  <div kuiCarouselSlide>Slide 2</div>
  <div kuiCarouselSlide>Slide 3</div>
  <div kuiCarouselSlide>Slide 4</div>
  <div kuiCarouselSlide>Slide 5</div>
</kui-carousel>
Carousel events
  • No events yet.
NameTypeDefaultDescription
itemsPerViewnumber | undefinedundefinedHow many slides are visible at once (defaults.carousel.itemsPerView, then 1). Invalid or non-positive static values use 1. The highest reachable index is slideCount - itemsPerView, and the dot picker renders exactly that many dots.
loopboolean | undefinedundefinedWraps navigation at the edges instead of disabling Prev and Next there. Falls back to defaults.carousel.loop, then false.
autoplayboolean | undefinedundefinedAdvances automatically on a timer and always shows Play/Pause; pauses while the pointer, focus or a touch is inside. Falls back to defaults.carousel.autoplay, then false.
autoplayIntervalnumber | undefinedundefinedAutoplay delay between slides in ms (defaults.carousel.autoplayInterval, then 4000). Invalid or non-positive static values use 4000.
showArrowsboolean | undefinedundefinedShows the Prev and Next arrows (defaults.carousel.showArrows, then true). Swipe and scroll work regardless.
showDotsboolean | undefinedundefinedShows the dot picker below the track (defaults.carousel.showDots, then true). Swipe and scroll work regardless.
draggableboolean | undefinedundefinedAdds mouse drag-to-scroll on top of the always-native touch swipe (defaults.carousel.draggable, then true). false also locks wheel and trackpad scroll and removes the track from the tab order.
ariaLabelstring | undefinedundefinedAccessible name of the region. Falls back to the carousel.label message (Slides); use a content-specific name that does not contain "carousel".
messagesPartial<KuiCarouselMessages> | undefinedundefinedPer-instance text overrides for the label, role descriptions, controls and slide names. They win over scoped and root messages.
[(index)]number0Index of the first visible slide. A debounced scroll listener snaps it to the nearest slide after a swipe or drag.
(indexChange)number-Emitted whenever index changes (model output).
[kuiCarouselSlide]content slot-Marks projected slide content: role="group" with aria-roledescription="slide" and an "N of total" name. It has no inputs.
--kui-carousel-gap / -radius / -slide-radiusCSS custom properties-Gap between slides and the region and slide corner radii.
--kui-carousel-bg / -border / -slide-bgCSS custom properties-Region background and border and the slide backdrop.
--kui-carousel-control-bg / -control-shadowCSS custom properties-Backdrop circle and shadow of the Prev, Next and Play controls.
--kui-carousel-dot-bg / -dot-bg-active / -dot-sizeCSS custom properties-Colour of the dots, the active dot and the dot size.
KuiCarouselOptionsinterface-Shape of defaults.carousel: itemsPerView, loop, autoplay, autoplayInterval, showArrows, showDots, draggable, previousIcon and nextIcon.

Inputs verified against @kikita-labs/ui v2.0.0 public typings.