ScrollBar() — ui Function Reference
Architecture documentation for the ScrollBar() function in scroll-area.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 727afc8a_8d07_8295_2bf2_f3757f42c941["ScrollBar()"] 7e07f821_78c9_dc66_ce35_d8e8f26b8cf5["scroll-area.tsx"] 727afc8a_8d07_8295_2bf2_f3757f42c941 -->|defined in| 7e07f821_78c9_dc66_ce35_d8e8f26b8cf5 style 727afc8a_8d07_8295_2bf2_f3757f42c941 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui/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-l data-vertical:border-l-transparent",
className
)}
{...props}
>
<ScrollAreaPrimitive.ScrollAreaThumb
data-slot="scroll-area-thumb"
className="bg-border relative flex-1 rounded-full"
/>
</ScrollAreaPrimitive.ScrollAreaScrollbar>
)
}
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/radix/ui/scroll-area.tsx.
Where is ScrollBar() defined?
ScrollBar() is defined in apps/v4/examples/radix/ui/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