Getting startedChangelog
Examples
itemsToScrollitemsToShowbreakPointsverticalModeinitialActiveIndexfocusOnSelectisRTLenableAutoPlayitemPaddingouterSpacingshowEmptySlotsitemPositioneasingrenderArrowrenderPaginationSignatureDemoautoTabIndexVisibleItemsonChangeonNextStartonNextEndonPrevStartonPrevEndonResizeslideNext / slidePrevgoToStyling
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 */}
pagesArray of page index.activePageThe current active page id.onClickIs the hook to the inneronClickof theCarousel. You can attach it wherever you want within the returned component.