Skip to content

Commit

Permalink
[@mantine/carousel] Fix incorrect slidesToScroll type (#2548)
Browse files Browse the repository at this point in the history
Allow `auto` value for prop `slidesToScroll` 
Docs:  https://www.embla-carousel.com/api/options/#slidestoscroll
  • Loading branch information
7iomka committed Sep 29, 2022
1 parent 9a4be06 commit 35605de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-carousel/src/Carousel.tsx
Expand Up @@ -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;
Expand Down

0 comments on commit 35605de

Please sign in to comment.