MCPcopy Create free account
hub / github.com/MagicCube/agentara / ScrollArea

Function ScrollArea

web/src/components/ui/scroll-area.tsx:6–27  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>)

Source from the content-addressed store, hash-verified

4import { cn } from "@/lib/utils"
5
6function ScrollArea({
7 className,
8 children,
9 ...props
10}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
11 return (
12 <ScrollAreaPrimitive.Root
13 data-slot="scroll-area"
14 className={cn("relative", className)}
15 {...props}
16 >
17 <ScrollAreaPrimitive.Viewport
18 data-slot="scroll-area-viewport"
19 className="size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1"
20 >
21 {children}
22 </ScrollAreaPrimitive.Viewport>
23 <ScrollBar />
24 <ScrollAreaPrimitive.Corner />
25 </ScrollAreaPrimitive.Root>
26 )
27}
28
29function ScrollBar({
30 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected