From 61f5c0fe97b71e5a077e8a8df91a59f390cc552c Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 7 Aug 2026 04:14:42 +0000 Subject: [PATCH] Modified by www.SourceFiles.app --- src/components/ui/scroll-area.tsx | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/components/ui/scroll-area.tsx diff --git a/src/components/ui/scroll-area.tsx b/src/components/ui/scroll-area.tsx new file mode 100644 index 0000000..69febe5 --- /dev/null +++ b/src/components/ui/scroll-area.tsx @@ -0,0 +1,44 @@ +import * as React from "react"; +import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"; + +import { cn } from "@/lib/utils"; + +const ScrollArea = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + + {children} + + + + +)); +ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName; + +const ScrollBar = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, orientation = "vertical", ...props }, ref) => ( + + + +)); +ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName; + +export { ScrollArea, ScrollBar };