Infinite Scroll

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab

Usage

import { InfiniteScroll } from 'bio-bind-ui';
<InfiniteScroll
  height={200}
  isFetchingMore
  isRowLoaded={() => {}}
  loadMoreRows={() => {}}
  mode='light'
  rowHeight={40}
  rowRenderer={() => {}}
  threshold={10}
  width={300}
/>

Examples

Mode (optional)

Use mode to use dark or light


Props

PropsRequiredDefaultTypedescription
isFetchingMorefalsetruetrue falseBoolean indicating if more rows are being loaded.
rowHeightfalse-numberEither a fixed row height (number) or a function that returns the height of a row given its index.
widthfalse-numberWidth of the list.
heightfalse-numberAHeight constraint for list.
modefalselightlight darkThe theme mode of the Infinite Scroll (light or dark).
thresholdfalse-numberThreshold at which to pre-fetch data.
isRowLoadedfalse-functionFunction responsible for tracking the loaded state of each row.
loadMoreRowsfalse-`functionCallback to be invoked when more rows must be loaded.
rowRendererfalse-functionResponsible for rendering a row. Learn more.
rowCountfalse-objectNumber of rows in list.
remoteRowCountfalse-objectNumber of rows in list.
minimumBatchSizefalse-numberMinimum number of rows to load at once.
childrenfalse-ReactNodeOptional render prop for custom list implementation.
loadingIndicatorfalse-ReactNodeOptional loading spinner component or render prop.
loadingTextfalse-stringOptional loading text.
BIND © Biofarma Innovate Next-level Design .