UNPKG

@chayns-components/core

Version:

A set of beautiful React components for developing your own applications with chayns.

23 lines 710 B
import React, { forwardRef, useMemo } from 'react'; import { StyledScrollView } from './ScrollView.styles'; const ScrollView = /*#__PURE__*/forwardRef(({ maxHeight = 300, height, maxWidth, width, children, overflowX = 'auto', overflowY = 'auto' }, ref) => useMemo(() => /*#__PURE__*/React.createElement(StyledScrollView, { className: "chayns-scrollbar", $maxHeight: maxHeight, $height: height, $maxWidth: maxWidth, $width: width, $overflowX: overflowX, $overflowY: overflowY, ref: ref }, children), [children, height, maxHeight, maxWidth, overflowX, overflowY, ref, width])); ScrollView.displayName = 'ScrollView'; export default ScrollView; //# sourceMappingURL=ScrollView.js.map