OverflowScroll
A set of React components that encapsulates the logic from useOverflowScroll for building carousel-like UI components:
OverflowScrollOverflowScroll.Items
Sample Usage
The following example demonstrates how to use OverflowScroll and OverflowScroll.Items to build carousel-like UI components.
Show editable code example
Any Paragon component or export may be added to the code example.
Theme Variables (SCSS)#
$overflow-scroll-opacity-mask-transparent: var(--pgn-overflow-scroll-opacity-mask-transparent) !default;
OverflowScroll Props API
- ariaLabel
stringRequired - children
nodeRequired - childQuerySelector
string - hasInteractiveChildrenDefaultfalse
bool - disableScrollDefaultfalse
bool - disableOpacityMasksDefaultfalse
bool - onScrollPrevious
func - onScrollNext
func