Skip to content

Commit 630ddde

Browse files
committed
Add doc for clamp
1 parent 3719bb4 commit 630ddde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/config.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Available Props
44

55
| Prop | Type | Default | Description |
6-
| -------------------------- | ------------------------------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------ |
6+
|----------------------------|---------------------------------------------|----------------------------------|--------------------------------------------------------------------------------------------------------|
77
| `autoplay` | `number` | 0 | Time interval (in milliseconds) between auto-advancing slides. Set to 0 to disable autoplay. |
88
| `breakpointMode` | 'viewport', 'carousel' | 'viewport' | Defines whether breakpoints are calculated based on viewport width or carousel container width. |
99
| `breakpoints` | `object` | null | Responsive breakpoint configurations. Each breakpoint can override any carousel prop. |
@@ -15,6 +15,7 @@
1515
| `ignoreAnimations` | `boolean` \| `string` \| `array` | false | Specifies which CSS animations should be excluded from slide size calculations. <Badge text="0.10.0"/> |
1616
| `itemsToScroll` | `number` | 1 | Number of slides to move when navigating. Useful for creating slide groups. |
1717
| `itemsToShow` | `number` \| 'auto' | 1 | Number of slides visible simultaneously. Use 'auto' for variable width slides. |
18+
| `clamp` | `boolean` | false | If true will clamp itemsToShow to the number of available slides |
1819
| `modelValue` | `number` | 0 | Controls the active slide index. Can be used with v-model for two-way binding. |
1920
| `mouseDrag` | `boolean` | true | Enables/disables mouse drag navigation. |
2021
| `pauseAutoplayOnHover` | `boolean` | false | When true, autoplay pauses while the mouse cursor is over the carousel. |

0 commit comments

Comments
 (0)