MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / ScrollBar

Function ScrollBar

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

Source from the content-addressed store, hash-verified

60}
61
62function ScrollBar({
63 className,
64 orientation = 'vertical',
65 ...props
66}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
67 return (
68 <ScrollAreaPrimitive.ScrollAreaScrollbar
69 data-slot="scroll-area-scrollbar"
70 orientation={orientation}
71 className={cn(
72 'flex touch-none p-px transition-colors select-none',
73 orientation === 'vertical' &&
74 'h-full w-2.5 border-l border-l-transparent',
75 orientation === 'horizontal' &&
76 'h-2.5 flex-col border-t border-t-transparent',
77 className,
78 )}
79 {...props}
80 >
81 <ScrollAreaPrimitive.ScrollAreaThumb
82 data-slot="scroll-area-thumb"
83 className="bg-border relative flex-1 rounded-full"
84 />
85 </ScrollAreaPrimitive.ScrollAreaScrollbar>
86 );
87}
88
89export { ScrollArea, ScrollBar };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected