YIZHUANG / react-multi-carousel

A lightweight production-ready Carousel that rocks supports multiple items and server-side rendering with no dependency. Bundle size 2kb.
MIT License
1.25k stars 286 forks source link

Render custom button group above the carousel #401

Closed Luks3110 closed 10 months ago

Luks3110 commented 10 months ago

When I pass the renderButtonGroupOutside along with a customButtonGroup, I need to button group to be rendered above the carousel, not below, Is there any workaround, since there is no prop for the position of the button group?

 <Carousel
      arrows={false}
      swipeable={false}
      responsive={breakpoints}
      customButtonGroup={<ButtonGroup />}
      renderButtonGroupOutside
      ssr
    >
     //...
    </Carousel>
Luks3110 commented 10 months ago

Solved by using ref

bhaveshdaswani93 commented 1 month ago

I also facing the similar issue, may I know how did you solve it? like how are you using ref?