ScrollBar() — ui Function Reference
Architecture documentation for the ScrollBar() function in scroll-area.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6b1c58b1_caaa_1d32_392e_ec610cfd1d13["ScrollBar()"] a922f53d_4725_518b_e0a9_77be31e031d9["scroll-area.tsx"] 6b1c58b1_caaa_1d32_392e_ec610cfd1d13 -->|defined in| a922f53d_4725_518b_e0a9_77be31e031d9 style 6b1c58b1_caaa_1d32_392e_ec610cfd1d13 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui-rtl/scroll-area.tsx lines 30–52
function ScrollBar({
className,
orientation = "vertical",
...props
}: ScrollAreaPrimitive.Scrollbar.Props) {
return (
<ScrollAreaPrimitive.Scrollbar
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.Thumb
data-slot="scroll-area-thumb"
className="bg-border relative flex-1 rounded-full"
/>
</ScrollAreaPrimitive.Scrollbar>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ScrollBar() do?
ScrollBar() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/scroll-area.tsx.
Where is ScrollBar() defined?
ScrollBar() is defined in apps/v4/examples/base/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