From 340367838bb1ce30bcad1d519551733afc06cb85 Mon Sep 17 00:00:00 2001 From: 7iomka <7iomka@gmail.com> Date: Sun, 25 Sep 2022 20:45:06 +0300 Subject: [PATCH] Allow `auto` value for prop `slidesToScroll` Allow `auto` value for prop `slidesToScroll` Docs: https://www.embla-carousel.com/api/options/#slidestoscroll --- src/mantine-carousel/src/Carousel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mantine-carousel/src/Carousel.tsx b/src/mantine-carousel/src/Carousel.tsx index 39ab41976e7..36df131cf5e 100644 --- a/src/mantine-carousel/src/Carousel.tsx +++ b/src/mantine-carousel/src/Carousel.tsx @@ -67,7 +67,7 @@ export interface CarouselProps align?: 'start' | 'center' | 'end' | number; /** Number of slides that should be scrolled with next/previous buttons */ - slidesToScroll?: number; + slidesToScroll?: number | 'auto'; /** Determines whether gap should be treated as part of the slide size, true by default */ includeGapInSize?: boolean;