moxystudio / react-carousel

A React carousel component that aims to be as flexible as possible
MIT License
14 stars 3 forks source link

Provide convience `slideCount` arg in `renderArrows` method #14

Closed threequartersjohn closed 4 years ago

threequartersjohn commented 4 years ago

A user might want to render arrows which depend on the carousel's current position in relation to the total of slides, e.g. signaling to the user to move right while there are more items to see, or move left if they're at the end of the carousel.

The user already has internal knowledge of the number of slides and can manage on their own, but since this convenience already exists for renderDots, this would be consistent with the existing API.