akiran / akiran/react-slick

Custom navigation buttons outside & with correct disabled state

Abierto
#2,271 0 comentarios 3 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
11.9k
Forks
2.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.