ScrollBar() — ui Function Reference
Architecture documentation for the ScrollBar() function in scroll-area.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 9833ed7c_3cc5_480d_fcee_4f81deace40c["ScrollBar()"] 1fd7c6ce_b2d0_1b03_8866_96ce49d92cad["scroll-area.tsx"] 9833ed7c_3cc5_480d_fcee_4f81deace40c -->|defined in| 1fd7c6ce_b2d0_1b03_8866_96ce49d92cad style 9833ed7c_3cc5_480d_fcee_4f81deace40c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/ui/scroll-area.tsx lines 31–53
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(
"cn-scroll-area-scrollbar flex touch-none p-px transition-colors select-none",
className
)}
{...props}
>
<ScrollAreaPrimitive.ScrollAreaThumb
data-slot="scroll-area-thumb"
className="cn-scroll-area-thumb bg-border relative flex-1"
/>
</ScrollAreaPrimitive.ScrollAreaScrollbar>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ScrollBar() do?
ScrollBar() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/scroll-area.tsx.
Where is ScrollBar() defined?
ScrollBar() is defined in apps/v4/registry/bases/radix/ui/scroll-area.tsx at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free