ScrollBar() — ui Function Reference
Architecture documentation for the ScrollBar() function in scroll-area.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD e4d743b5_6f56_30ba_0ebe_294a7ae3a9b7["ScrollBar()"] cb2ffae8_57b6_3294_7428_04e552df63b4["scroll-area.tsx"] e4d743b5_6f56_30ba_0ebe_294a7ae3a9b7 -->|defined in| cb2ffae8_57b6_3294_7428_04e552df63b4 style e4d743b5_6f56_30ba_0ebe_294a7ae3a9b7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui-rtl/scroll-area.tsx lines 30–52
function ScrollBar({
className,
orientation = "vertical",
...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
return (
<ScrollAreaPrimitive.ScrollAreaScrollbar
data-slot="scroll-area-scrollbar"
data-orientation={orientation}
orientation={orientation}
className={cn(
"flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent",
className
)}
{...props}
>
<ScrollAreaPrimitive.ScrollAreaThumb
data-slot="scroll-area-thumb"
className="bg-border relative flex-1 rounded-full"
/>
</ScrollAreaPrimitive.ScrollAreaScrollbar>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ScrollBar() do?
ScrollBar() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/scroll-area.tsx.
Where is ScrollBar() defined?
ScrollBar() is defined in apps/v4/examples/radix/ui-rtl/scroll-area.tsx at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free