booleanWhether to allow scrolling via dragging with mouse
autoplay
false
boolean | { delay: number; }Whether to scroll automatically. The default delay is 4000ms.
defaultPage
0
numberThe initial page to scroll to when rendered.
Use when you don't need to control the page of the carousel.
id
stringThe unique identifier of the machine.
ids
{
root?: string;
viewport?: string;
item(index: number)?: string;
itemGroup?: string;
nextTrigger?: string;
prevTrigger?: string;
indicatorGroup?: string;
indicator(index: number?): string;
}The ids of the elements in the carousel. Useful for composition.
inViewThreshold
0.6
number | number[]The threshold for determining if an item is in view.
loop
false
booleanWhether the carousel should loop around.
onAutoplayStatusChange
(details: AutoplayStatusDetails) => voidFunction called when the autoplay status changes.
onDragStatusChange
(details: DragStatusDetails) => voidFunction called when the drag status changes.
onPageChange
(details: PageChangeDetails) => voidFunction called when the page changes.
orientation
"horizontal"
"horizontal" | "vertical"The orientation of the element.
padding
stringDefines the extra space added around the scrollable area,
enabling nearby items to remain partially in view.
page
numberThe controlled page of the carousel.
slideCount
numberThe total number of slides.
Useful for SSR to render the initial ating the snap points.
slidesPerMove
"auto"
number | "auto"The number of slides to scroll at a time.
When set to `auto`, the number of slides to scroll is determined by the
`slidesPerPage` property.
slidesPerPage
1
numberThe number of slides to show at a time.
snapType
"mandatory"
"proximity" | "mandatory"The snap type of the item.