-
I event tried wrapping it in class object but it is not working. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @TaduJR. Your PT doesn't works because both pcprev and pcnext are button components, so you'll have to pass the correct button PT object to make it work, otherwise it won't. Here is the fixed component: <Carousel
v-if="product && product.image_urls"
class="mt-2"
:value="product.image_urls"
:numVisible="3"
:numScroll="3"
:responsiveOptions="carouselResponsiveOptions"
:showIndicators="false"
:pt="{
pcPrevButton: {
root: {
class: 'bottom-0',
},
},
pcNextButton: {
root: {
class: 'bottom-0',
},
},
}"
>
...
</Carousel> By the way, I just checked the documentation, and noticed that both props are typed as any instead of the button PT type. I’m planning to open a PR to address this! 😁 |
Beta Was this translation helpful? Give feedback.
Hello @TaduJR. Your PT doesn't works because both pcprev and pcnext are button components, so you'll have to pass the correct button PT object to make it work, otherwise it won't. Here is the fixed component:
By t…