MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / ScrollBar

Function ScrollBar

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected