nuka-carousel icon indicating copy to clipboard operation
nuka-carousel copied to clipboard

Are imperative api's such as `slideNext` and `slidePrev` available outside `Carousel` component?

Open samuelkarani opened this issue 2 years ago • 2 comments

Question

Describe the Problem

Are imperative api's such as slideNext and slidePrev available? Maybe via something like a hook or class instance. How can one navigate outside the Carousel component? I cant seem to find this in the docs or issues panel.

Example one such availability:

const { slideNext, slidePrevious } = useSlider();

samuelkarani avatar Jul 29 '23 16:07 samuelkarani

Would love this feature too! Or just if the functions could be imported

import { goToSlide } from 'nuka-carousel' 

ssolders avatar Sep 29 '23 16:09 ssolders

I would also like to know if this is possible

henrybabbage avatar Nov 13 '23 16:11 henrybabbage

These are now available in Nukav8

carbonrobot avatar Apr 05 '24 18:04 carbonrobot