diff --git a/src/shared/components/scroll-area/scroll-area.tsx b/src/shared/components/scroll-area/scroll-area.tsx index 7c6bc690d..7283f15c6 100644 --- a/src/shared/components/scroll-area/scroll-area.tsx +++ b/src/shared/components/scroll-area/scroll-area.tsx @@ -13,10 +13,20 @@ interface ScrollAreaProps extends React.ComponentPropsWithoutRef<'div'> { allowDragScroll?: boolean; debugScrollPosition?: boolean; scrollHideDelay?: number; + scrollX?: boolean; + scrollY?: boolean; } export const ScrollArea = forwardRef((props: ScrollAreaProps, ref: Ref) => { - const { allowDragScroll, children, className, scrollHideDelay, ...htmlProps } = props; + const { + allowDragScroll, + children, + className, + scrollHideDelay, + scrollX = false, + scrollY = true, + ...htmlProps + } = props; const containerRef = useRef(null); const [scroller, setScroller] = useState(null); @@ -24,7 +34,7 @@ export const ScrollArea = forwardRef((props: ScrollAreaProps, ref: Ref