|
2 | 2 |
|
3 | 3 | ## Available Props
|
4 | 4 |
|
5 |
| -| Prop | Default | Description | |
6 |
| -| ---------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | |
7 |
| -| `itemsToShow` | 1 | count of items to showed per view (can be a fraction). | |
8 |
| -| `itemsToScroll` | 1 | number of slides to be scrolled | |
9 |
| -| `wrapAround` | false | enable infinite scrolling mode. | |
10 |
| -| `snapAlign` | 'center' | controls the carousel position alignment, can be 'start', 'end', 'center-[odd\|even]' | |
11 |
| -| `transition` | 300 | sliding transition time in ms. | |
12 |
| -| `autoplay` | 0 | Auto play time in ms. | |
13 |
| -| `breakpointMode` | 'viewport' | determines how the carousel breakpoints are calculated. acceptable values: 'viewport', 'carousel' <Badge text="0.5.0"/> | |
14 |
| -| `breakpoints` | null | an object to pass all the breakpoints settings. | |
15 |
| -| `modelValue` | 0 | index number of the initial slide. <Badge text="0.1.20"/> | |
16 |
| -| `mouseDrag` | true | toggle mouse dragging <Badge text="0.1.23"/> | |
17 |
| -| `touchDrag` | true | toggle pointer touch dragging <Badge text="0.1.23"/> | |
18 |
| -| `pauseAutoplayOnHover` | false | toggle if auto play should pause on mouse hover <Badge text="0.1.25"/> | |
19 |
| -| `dir` | ltr | controls the carousel direction. Available values 'ltr', 'rtl' <Badge text="0.1.38"/> | |
20 |
| -| `i18n` | [`{ ariaNextSlide: ...}`](#i18n) | Used to translate and/or change aria labels and additional texts used in the carousel. <Badge text="0.3.1"/> | |
21 |
| -| `gap` | 0 | Used to add gap between the slides. <Badge text="0.6.0"/> | |
| 5 | +| Prop | Default | Description | |
| 6 | +| ---------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 7 | +| `itemsToShow` | 1 | Count of items to showed per view (can be a fraction). | |
| 8 | +| `itemsToScroll` | 1 | Number of slides to be scrolled | |
| 9 | +| `wrapAround` | false | Enable infinite scrolling mode. | |
| 10 | +| `snapAlign` | 'center' | Controls the carousel position alignment, can be 'start', 'end', 'center-[odd\|even]' | |
| 11 | +| `transition` | 300 | Sliding transition time in ms. | |
| 12 | +| `autoplay` | 0 | Auto play time in ms. | |
| 13 | +| `breakpointMode` | 'viewport' | Determines how the carousel breakpoints are calculated. acceptable values: 'viewport', 'carousel' <Badge text="0.5.0"/> | |
| 14 | +| `breakpoints` | null | An object to pass all the breakpoints settings. | |
| 15 | +| `modelValue` | 0 | Index number of the initial slide. | |
| 16 | +| `mouseDrag` | true | Toggle mouse dragging | |
| 17 | +| `touchDrag` | true | Toggle pointer touch dragging | |
| 18 | +| `pauseAutoplayOnHover` | false | Toggle if auto play should pause on mouse hover | |
| 19 | +| `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"/> | |
| 20 | +| `i18n` | [`{ ariaNextSlide: ...}`](#i18n) | Used to translate and/or change aria labels and additional texts used in the carousel. <Badge text="0.3.1"/> | |
| 21 | +| `gap` | 0 | Used to add gap between the slides. <Badge text="0.6.0"/> | |
| 22 | +| `height` | 'auto' | Carousel track height. <Badge text="0.7.0"/> | |
| 23 | + |
22 | 24 |
|
23 | 25 | ## Slots
|
24 | 26 |
|
@@ -56,11 +58,12 @@ Used to add display carousel addons components.
|
56 | 58 |
|
57 | 59 | ### Slots Attributes
|
58 | 60 |
|
59 |
| -| Prop | Description | |
60 |
| -| -------------- | ------------------------------------ | |
61 |
| -| `slideWidth` | the width of a single slide element. | |
62 |
| -| `currentSlide` | index number of the current slide. | |
63 |
| -| `slidesCount` | the count of all slides | |
| 61 | +| Prop | Description | |
| 62 | +| ---------------- | ------------------------------------------------------------------------------------------- | |
| 63 | +| ~~`slideWidth`~~ | ~~the width of a single slide element.~~ <Badge type="danger" text="Rename to slideSize"/> | |
| 64 | +| `slideSize` | the width/height of a single slide element. | |
| 65 | +| `currentSlide` | index number of the current slide. | |
| 66 | +| `slidesCount` | the count of all slides | |
64 | 67 |
|
65 | 68 | #### Example
|
66 | 69 |
|
|
0 commit comments