Carousel

A horizontally scrollable container for displaying a row of items. It supports drag-to-scroll, mouse wheel scrolling, and scroll shadow indicators. Items placed within the carousel should have a min-width set to prevent flex from fitting everything without overflowing.

When using the Carousel, you should set :draggable="false" on child elements to avoid conflicts with the native drag behavior during drag-to-scroll.

Props

NameDefaultType
gap's'xxs xs s m l xl xxl xxxl number
Controls the spacing between carousel items. Uses Flex gap under the hood
hideScrollbarboolean
Hides the horizontal scrollbar and removes scrollbar gutter padding
hideShadowsboolean
Hides the left & right scroll shadow indicators

Slots

NamePropsDescription
defaultThe carousel items. Each child should have a min-width set

Features

  • Drag to scroll — Click and drag horizontally to scroll through items. A threshold prevents accidental drags from triggering on simple clicks.
  • Wheel scrolling — Vertical mouse wheel input is converted to horizontal scrolling within the carousel.
  • Scroll shadows — Gradient shadow indicators appear on the left and right edges when there is more content to scroll to in that direction.