themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS
https://flowbite-react.com
MIT License
1.82k stars 406 forks source link

Add slideTo to Carousel settings #1192

Closed maykelesser closed 7 months ago

maykelesser commented 8 months ago

Summary

Just like we have in the default Flowbite (https://flowbite.com/docs/components/carousel/#methods), i'd like to set the current slide in a event. I don't know how to achieve it using the flowbite-react Carousel.

Context

I'm trying to sync two carousels to set same indexes at same time. One is in a modal, and other is outside.

tulup-conner commented 8 months ago

Thank you! You can do this manually by clicking the desired indicator but, yeah, there's no way to set it programmatically. That could be useful and, like you point out, it's in vanilla so we should have it.

tulup-conner commented 7 months ago

This is a duplicate of #1094, though