import React from "react"; export interface ScrollAreaProps extends React.HTMLAttributes { orientation?: "vertical" | "horizontal" | "both"; } export const ScrollArea = React.forwardRef( ({ className = "", children, orientation = "vertical", ...props }, ref) => { let orientationClasses = "overflow-y-auto overflow-x-hidden"; if (orientation === "horizontal") orientationClasses = "overflow-x-auto overflow-y-hidden"; if (orientation === "both") orientationClasses = "overflow-auto"; return (
{children}
); } ); ScrollArea.displayName = "ScrollArea";