React-Slick Carousel - Disable arrows

Kashif Nazar picture Kashif Nazar · Oct 27, 2016 · Viewed 15k times · Source

We are using React-Slick for the Carousel effect in our application. The content in the slider is dynamic and the length of the Carousel items can be between 4 to 20.

The problem is that even when the width of all the content is less than the width of the slider track, the left-right arrows work.

Carousel

What is the solution/workaround to hide or disable these arrows in such case?

Answer

Yongzhi picture Yongzhi · Oct 27, 2016

Please take a look at their docs. They have an option disable it.

https://github.com/akiran/react-slick

<ReactSlick arrows={false}>...</ReactSlick>