+
+
*:last-child]:sticky [&_tr>*:last-child]:z-50 [&_tr>*:last-child]:right-0',
+ '[&_tr:hover>*:last-child]:bg-transparent',
+ '[&_th>*:last-child]:bg-surface-100',
+ stickyColumnShadow,
+ ],
+ hasHorizontalScroll && '[&_tr:hover>td:last-child]:!bg-surface-200',
+ canScrollRight &&
+ '[&_td]:before:opacity-100 [&_tr>*:last-child]:before:opacity-100 [&_th:last-child]:before:opacity-100',
+ className
+ )}
+ {...props}
+ >
+ {children}
+
+
+ )
+ }
+)
+
+ShadowScrollArea.displayName = 'ShadowScrollArea'
+
+export { ShadowScrollArea }
diff --git a/packages/ui/src/components/hooks/use-horizontal-scroll.ts b/packages/ui/src/components/hooks/use-horizontal-scroll.ts
new file mode 100644
index 0000000000000..d4a300d38c4d9
--- /dev/null
+++ b/packages/ui/src/components/hooks/use-horizontal-scroll.ts
@@ -0,0 +1,47 @@
+import * as React from 'react'
+
+export const useHorizontalScroll = (ref: React.RefObject