|
2 | 2 |
|
3 | 3 | ## Available Props
|
4 | 4 |
|
5 |
| -| Prop | Default | Description | |
6 |
| -| ---------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
7 |
| -| `enabled` | true | Controlled weather the carousel is enabled or disabled. <Badge text="0.8.0"/> | |
8 |
| -| `itemsToShow` | 1 | Count of items to showed per view (can be a fraction). Must be between 1 and the total number of slides. If set to a value less than 1, it defaults to 1. If set to a value greater than the total number of slides, it defaults to the total number of slides. | |
9 |
| -| `itemsToScroll` | 1 | Number of slides to be scrolled | |
10 |
| -| `wrapAround` | false | Enable infinite scrolling mode. | |
11 |
| -| `snapAlign` | 'center' | Controls the carousel position alignment, can be 'start', 'end', 'center-[odd\|even]' | |
12 |
| -| `transition` | 300 | Sliding transition time in ms. | |
13 |
| -| `autoplay` | 0 | Auto play time in ms. | |
14 |
| -| `breakpointMode` | 'viewport' | Determines how the carousel breakpoints are calculated. acceptable values: 'viewport', 'carousel' <Badge text="0.5.0"/> | |
15 |
| -| `breakpoints` | null | An object to pass all the breakpoints settings. | |
16 |
| -| `modelValue` | 0 | Index number of the initial slide. | |
17 |
| -| `mouseDrag` | true | Toggle mouse dragging | |
18 |
| -| `touchDrag` | true | Toggle pointer touch dragging | |
19 |
| -| `pauseAutoplayOnHover` | false | Toggle if auto play should pause on mouse hover | |
20 |
| -| `dir` | 'ltr' | Controls the carousel direction. Available values: 'ltr', 'rtl', 'ttb', 'btt' or use verbose 'left-to-right', 'right-to-left', 'top-to-bottom', 'bottom-to-top' <Badge text="0.7.0"/> | |
21 |
| -| `i18n` | [`{ ariaNextSlide: ...}`](#i18n) | Used to translate and/or change aria labels and additional texts used in the carousel. <Badge text="0.3.1"/> | |
22 |
| -| `gap` | 0 | Used to add gap between the slides. <Badge text="0.6.0"/> | |
23 |
| -| `height` | 'auto' | Carousel track height. <Badge text="0.7.0"/> | |
24 |
| -| `ignoreAnimations` | false | List of animation names to ignore for size calculations. Can be a boolean, string, or array of strings. <Badge text="0.10.0"/> | |
| 5 | +| Prop | Default | Description | |
| 6 | +| -------------------------- | -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 7 | +| `enabled` | true | Controlled weather the carousel is enabled or disabled. <Badge text="0.8.0"/> | |
| 8 | +| `itemsToShow` | 1 | Count of items to showed per view (can be a fraction). Must be between 1 and the total number of slides. If set to a value less than 1, it defaults to 1. If set to a value greater than the total number of slides, it defaults to the total number of slides. | |
| 9 | +| `itemsToScroll` | 1 | Number of slides to be scrolled | |
| 10 | +| `wrapAround` | false | Enable infinite scrolling mode. | |
| 11 | +| `snapAlign` | 'center' | Controls the carousel position alignment, can be 'start', 'end', 'center-[odd\|even]' | |
| 12 | +| `transition` | 300 | Sliding transition time in ms. | |
| 13 | +| `autoplay` | 0 | Auto play time in ms. | |
| 14 | +| `breakpointMode` | 'viewport' | Determines how the carousel breakpoints are calculated. acceptable values: 'viewport', 'carousel' <Badge text="0.5.0"/> | |
| 15 | +| `breakpoints` | null | An object to pass all the breakpoints settings. | |
| 16 | +| `modelValue` | 0 | Index number of the initial slide. | |
| 17 | +| `mouseDrag` | true | Toggle mouse dragging | |
| 18 | +| `touchDrag` | true | Toggle pointer touch dragging | |
| 19 | +| `pauseAutoplayOnHover` | false | Toggle if auto play should pause on mouse hover | |
| 20 | +| `dir` | 'ltr' | Controls the carousel direction. Available values: 'ltr', 'rtl', 'ttb', 'btt' or use verbose 'left-to-right', 'right-to-left', 'top-to-bottom', 'bottom-to-top' <Badge text="0.7.0"/> | |
| 21 | +| `i18n` | [`{ ariaNextSlide: ...}`](#i18n) | Used to translate and/or change aria labels and additional texts used in the carousel. <Badge text="0.3.1"/> | |
| 22 | +| `gap` | 0 | Used to add gap between the slides. <Badge text="0.6.0"/> | |
| 23 | +| `height` | 'auto' | Carousel track height. <Badge text="0.7.0"/> | |
| 24 | +| `ignoreAnimations` | false | List of animation names to ignore for size calculations. Can be a boolean, string, or array of strings. <Badge text="0.10.0"/> | |
| 25 | +| `preventExcessiveDragging` | false | Prevents unwanted dragging behavior when the carousel reaches its first or last slide. <Badge text="0.13.0" /> | |
| 26 | + |
25 | 27 |
|
26 | 28 |
|
27 | 29 | ## Slots
|
|
0 commit comments