|
| 1 | +export const api = { |
| 2 | + carousel: [ |
| 3 | + { |
| 4 | + bullet: [], |
| 5 | + }, |
| 6 | + { |
| 7 | + inline: [], |
| 8 | + }, |
| 9 | + { |
| 10 | + next: [], |
| 11 | + }, |
| 12 | + { |
| 13 | + pagination: [], |
| 14 | + }, |
| 15 | + { |
| 16 | + player: [], |
| 17 | + }, |
| 18 | + { |
| 19 | + previous: [], |
| 20 | + }, |
| 21 | + { |
| 22 | + root: [ |
| 23 | + { |
| 24 | + CarouselRootProps: [ |
| 25 | + { |
| 26 | + comment: 'The gap between slides', |
| 27 | + prop: 'gap?', |
| 28 | + type: 'number', |
| 29 | + }, |
| 30 | + { |
| 31 | + comment: 'Number of slides to show at once', |
| 32 | + prop: 'slidesPerView?', |
| 33 | + type: 'number', |
| 34 | + }, |
| 35 | + { |
| 36 | + comment: 'Whether the carousel is draggable', |
| 37 | + prop: 'draggable?', |
| 38 | + type: 'boolean', |
| 39 | + }, |
| 40 | + { |
| 41 | + comment: 'Alignment of slides within the viewport', |
| 42 | + prop: 'align?', |
| 43 | + type: "'start' | 'center' | 'end'", |
| 44 | + }, |
| 45 | + { |
| 46 | + comment: 'Whether the carousel should rewind', |
| 47 | + prop: 'rewind?', |
| 48 | + type: 'boolean', |
| 49 | + }, |
| 50 | + { |
| 51 | + comment: 'Bind the selected index to a signal', |
| 52 | + prop: "'bind:selectedIndex'?", |
| 53 | + type: 'Signal<number>', |
| 54 | + }, |
| 55 | + { |
| 56 | + comment: 'change the initial index of the carousel on render', |
| 57 | + prop: 'startIndex?', |
| 58 | + type: 'number', |
| 59 | + }, |
| 60 | + { |
| 61 | + comment: |
| 62 | + '@deprecated Use bind:selectedIndex instead\n Bind the current slide index to a signal', |
| 63 | + prop: "'bind:currSlideIndex'?", |
| 64 | + type: 'Signal<number>', |
| 65 | + }, |
| 66 | + { |
| 67 | + comment: 'Whether the carousel should autoplay', |
| 68 | + prop: "'bind:autoplay'?", |
| 69 | + type: 'Signal<boolean>', |
| 70 | + }, |
| 71 | + { |
| 72 | + comment: 'the current progress of the carousel', |
| 73 | + prop: "'bind:progress'?", |
| 74 | + type: 'Signal<number>', |
| 75 | + }, |
| 76 | + { |
| 77 | + comment: 'Time in milliseconds before the next slide plays during autoplay', |
| 78 | + prop: 'autoPlayIntervalMs?', |
| 79 | + type: 'number', |
| 80 | + }, |
| 81 | + { |
| 82 | + comment: '@internal Total number of slides', |
| 83 | + prop: '_numSlides?', |
| 84 | + type: 'number', |
| 85 | + }, |
| 86 | + { |
| 87 | + comment: '@internal Whether this carousel has a title', |
| 88 | + prop: '_isTitle?', |
| 89 | + type: 'boolean', |
| 90 | + }, |
| 91 | + { |
| 92 | + comment: 'The sensitivity of the carousel dragging', |
| 93 | + prop: 'sensitivity?', |
| 94 | + type: '{', |
| 95 | + }, |
| 96 | + ], |
| 97 | + }, |
| 98 | + ], |
| 99 | + }, |
| 100 | + { |
| 101 | + scroller: [], |
| 102 | + }, |
| 103 | + { |
| 104 | + slide: [], |
| 105 | + }, |
| 106 | + { |
| 107 | + step: [], |
| 108 | + }, |
| 109 | + { |
| 110 | + stepper: [], |
| 111 | + }, |
| 112 | + { |
| 113 | + title: [], |
| 114 | + }, |
| 115 | + { |
| 116 | + 'use-carousel': [], |
| 117 | + }, |
| 118 | + { |
| 119 | + 'use-scroller': [], |
| 120 | + }, |
| 121 | + ], |
| 122 | +}; |
0 commit comments