Home / Function/ ScrollBar() — ui Function Reference

ScrollBar() — ui Function Reference

Architecture documentation for the ScrollBar() function in scroll-area.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  72e13a04_3311_7602_3cb6_f01a16592f34["ScrollBar()"]
  a39db527_3978_b903_40dc_e0650123b99c["scroll-area.tsx"]
  72e13a04_3311_7602_3cb6_f01a16592f34 -->|defined in| a39db527_3978_b903_40dc_e0650123b99c
  style 72e13a04_3311_7602_3cb6_f01a16592f34 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/scroll-area.tsx lines 31–53

function ScrollBar({
  className,
  orientation = "vertical",
  ...props
}: ScrollAreaPrimitive.Scrollbar.Props) {
  return (
    <ScrollAreaPrimitive.Scrollbar
      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.Thumb
        data-slot="scroll-area-thumb"
        className="cn-scroll-area-thumb bg-border relative flex-1"
      />
    </ScrollAreaPrimitive.Scrollbar>
  )
}

Subdomains

Frequently Asked Questions

What does ScrollBar() do?
ScrollBar() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/scroll-area.tsx.
Where is ScrollBar() defined?
ScrollBar() is defined in apps/v4/registry/bases/base/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