react.js antd carousel with arrows

后端 未结 7 2061
既然无缘
既然无缘 2021-01-12 11:26

I am looking at using the antd Caroseul, but I\'ve not seen an example that creates a prev/next or pause button.

const { Carousel } = antd;

ReactDOM.render         


        
相关标签:
7条回答
  • 2021-01-12 11:57

    Whilst reading https://ant.design/components/carousel/ I scrolled to the bottom and it says that it's using https://github.com/akiran/react-slick

    If you scroll down to the prop table, you can use nextArrow or prevArrow which takes a React Element as a value.

    0 讨论(0)
提交回复
热议问题