ui(components): Viewport components updated to ui-next with design updates (#4886)

This commit is contained in:
Dan Rukas authored and GitHub committed 2025-04-07 16:45:05 -04:00
1 parent 4e09f85d5d
commit a8ac297e16
53 files changed
+933 -326

No files matched your search

@@ -11,6 +11,7 @@ import { Icons } from '../Icons';
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {
/** Flag to show/hide scroll indicator arrows at top and bottom */
showArrows?: boolean;
type?: 'auto' | 'always' | 'scroll';
}
/**
@@ -56,6 +57,7 @@ const ScrollArea = React.forwardRef<
<ScrollAreaPrimitive.Root
ref={ref}
className={cn('relative h-full overflow-hidden', className)}
type={props.type || 'auto'}
{...props}
>
<ScrollAreaPrimitive.Viewport