import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area"; import { cn } from "@/lib/utils"; function ScrollArea({ className, children, scrollFade = true, scrollbarGutter = false, hideScrollbar = false, scrollRef, contentRef, ...props }: ScrollAreaPrimitive.Root.Props & { /** Fade the edges of the scroll area to indicate scrollability */ scrollFade?: boolean; /** Leave extra space for the scrollbar, instead of it covering the content */ scrollbarGutter?: boolean; /** Completely hide scrollbars (useful for touch/gesture-only scroll areas) */ hideScrollbar?: boolean; /** Ref for the outer viewport element */ scrollRef?: React.Ref; /** Ref for the inner content element */ contentRef?: React.Ref; }) { return ( {children} {!hideScrollbar && ( <> )} ); } function ScrollBar({ className, orientation = "vertical", ...props }: ScrollAreaPrimitive.Scrollbar.Props) { return ( ); } export { ScrollArea, ScrollBar };