MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / ScrollBar

Function ScrollBar

src/components/ui/scroll-area.tsx:31–56  ·  view source on GitHub ↗
({
  className,
  orientation = "vertical",
  ...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>)

Source from the content-addressed store, hash-verified

29}
30
31function ScrollBar({
32 className,
33 orientation = "vertical",
34 ...props
35}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
36 return (
37 <ScrollAreaPrimitive.ScrollAreaScrollbar
38 data-slot="scroll-area-scrollbar"
39 orientation={orientation}
40 className={cn(
41 "flex touch-none p-px transition-colors select-none",
42 orientation === "vertical" &&
43 "h-full w-2.5 border-l border-l-transparent",
44 orientation === "horizontal" &&
45 "h-2.5 flex-col border-t border-t-transparent",
46 className
47 )}
48 {...props}
49 >
50 <ScrollAreaPrimitive.ScrollAreaThumb
51 data-slot="scroll-area-thumb"
52 className="bg-border relative flex-1 rounded-full"
53 />
54 </ScrollAreaPrimitive.ScrollAreaScrollbar>
55 )
56}
57
58export { ScrollArea, ScrollBar }

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected