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.

Source

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
snapboolean
Enables scroll-snap so items snap into place when scrolling stops

Slots

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