{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "scroll-area",
  "type": "registry:component",
  "title": "ScrollArea",
  "description": "ScrollArea adds styled, cross-browser scrollbars to overflowing content.",
  "dependencies": [
    "@radix-ui/react-scroll-area@^1.2.10"
  ],
  "registryDependencies": [
    "https://wideset.co/r/styles.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/components/scroll-area/ScrollArea.tsx",
      "type": "registry:ui",
      "target": "components/ui/wideset/scroll-area/ScrollArea.tsx",
      "content": "'use client';\n\nimport * as RadixScrollArea from '@radix-ui/react-scroll-area';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/wideset/utils';\n\nimport type { ScrollAreaProps } from './ScrollArea.types';\n\n/** `ref` points at the viewport, the element that scrolls. */\nexport const ScrollArea = forwardRef<HTMLDivElement, ScrollAreaProps>(\n  ({ orientation = 'vertical', indicatorHidden, children, className, ...props }, ref) => (\n    <RadixScrollArea.Root\n      data-slot=\"scroll-area\"\n      className={cn('overflow-hidden', className)}\n      {...props}\n    >\n      {/* Radix positions the scrollbar absolutely over the viewport, so the\n        viewport reserves the bar's footprint (8px track + 2px gap) on its\n        scrolling edge — content never sits under the indicator. */}\n      <RadixScrollArea.Viewport\n        ref={ref}\n        data-slot=\"scroll-area-viewport\"\n        className={cn(\n          'h-full w-full max-w-full min-w-0',\n          !indicatorHidden && (orientation === 'horizontal' ? 'pb-ws-6' : 'pr-ws-6'),\n        )}\n      >\n        {children}\n      </RadixScrollArea.Viewport>\n      <RadixScrollArea.Scrollbar\n        data-slot=\"scroll-area-scrollbar\"\n        className={cn(\n          'bg-ws-static-alpha-subtle hover:bg-ws-static-alpha-base p-ws-1 flex touch-none rounded-[0.75rem] transition-colors select-none',\n          orientation === 'horizontal' ? 'h-ws-5 flex-col' : 'w-ws-5',\n          indicatorHidden && 'h-0 w-0 bg-transparent',\n        )}\n        orientation={orientation}\n      >\n        <RadixScrollArea.Thumb\n          data-slot=\"scroll-area-thumb\"\n          className=\"bg-ws-dynamic-secondary-alpha-strong-default relative flex-1 rounded-[0.5rem]\"\n        />\n      </RadixScrollArea.Scrollbar>\n      <RadixScrollArea.Corner />\n    </RadixScrollArea.Root>\n  ),\n);\n\nScrollArea.displayName = 'ScrollArea';\n"
    },
    {
      "path": "src/components/scroll-area/ScrollArea.types.ts",
      "type": "registry:ui",
      "target": "components/ui/wideset/scroll-area/ScrollArea.types.ts",
      "content": "import type * as RadixScrollArea from '@radix-ui/react-scroll-area';\nimport type { ComponentPropsWithoutRef, ReactNode } from 'react';\n\nexport type ScrollAreaProps = Omit<\n  ComponentPropsWithoutRef<typeof RadixScrollArea.Root>,\n  'children'\n> & {\n  children: ReactNode;\n  orientation?: 'horizontal' | 'vertical';\n  indicatorHidden?: boolean;\n};\n"
    }
  ],
  "meta": {
    "version": "1.0.0",
    "commit": "8bb3627"
  }
}
