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 */}
pages
Array of page index.activePage
The current active page id.onClick
Is the hook to the inneronClick
of theCarousel
. You can attach it wherever you want within the returned component.