Scrollbar

Scrollbar UI Component

Installation

npm i @synerise/ds-scrollbar
or
yarn add @synerise/ds-scrollbar

Usage

import Scrollbar from '@synerise/ds-scrollbar'
<Scrollbar />

Demo

API

PropertyDescriptionTypeDefault
absoluteWhether the scrollbar is over contentbooleantrue
childrenScrolled componentReact.ReactNode / string-
classesString with optional classesstring-
fetchDataCallback called when scrollbar has been scrolled to the end in Y axis() => void-
hasMoreWhether the scrollbar can calls fetchDataboolean-
loadingWhether the scrollbar shows loading iconboolean-
maxHeightOptional max-height valuestring / number-
styleAdditional styles for scrollbar wrapperReact.CSSProperties-