akiran / akiran/react-slick

Custom navigation buttons outside & with correct disabled state

Open
#2,271 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

As described in #2013, it's possible to render navigation buttons outside of the slider component by passing the Slider ref and calling the respective methods on it (`slickNext()` and `slickPrev()`).

However, I didn't find a way to correctly disable the buttons based on the current slider state.
Maybe some additional properties like `hasNext` or `hasPrev` should be exposed on the Slider class?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.