React Elastic Carousel
Edit page
Getting started
Examples
itemsToScrollitemsToShowbreakPointsverticalModeinitialActiveIndexfocusOnSelectisRTLenableAutoPlayitemPaddingouterSpacingshowEmptySlotsitemPositioneasingrenderArrowrenderPaginationSignatureDemoautoTabIndexVisibleItemsonChangeonNextStartonNextEndonPrevStartonPrevEndonResizeslideNext / slidePrevgoToStyling
Changelog

renderPagination

You can provide custom pagination buttons.

Signature

  • You can pass a function that returns a react element,
    This function is a render prop and its signature is:
({ pages, activePage, onClick }) => {/* return your element here */}
  • pages Array of page index.
  • activePage The current active page id.
  • onClick Is the hook to the inner onClick of the Carousel. You can attach it wherever you want within the returned component.

Demo