import * as ScrollArea from '@radix-ui/react-scroll-area'; import clsx from 'clsx'; import type { RefAttributes } from 'react'; import { forwardRef } from 'react'; import * as styles from './index.css'; export const ScrollableRoot = forwardRef< HTMLDivElement, ScrollArea.ScrollAreaProps & RefAttributes >(({ children, className, ...props }, ref) => { return ( {children} ); }); ScrollableRoot.displayName = 'ScrollableRoot'; export const ScrollableViewport = forwardRef< HTMLDivElement, ScrollArea.ScrollAreaViewportProps & RefAttributes >(({ children, className, ...props }, ref) => { return ( {children} ); }); ScrollableViewport.displayName = 'ScrollableViewport'; export const ScrollableScrollbar = forwardRef< HTMLDivElement, ScrollArea.ScrollAreaScrollbarProps & RefAttributes >(({ children, className, ...props }, ref) => { return ( {children} ); }); ScrollableScrollbar.displayName = 'ScrollableScrollbar'; export const Scrollable = { Root: ScrollableRoot, Viewport: ScrollableViewport, Scrollbar: ScrollableScrollbar, };