{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "scroll-area",
  "title": "Scroll Area",
  "description": "A native scroll container with Keyline scrollbars (Base UI Scroll Area): a bar is a cell on the region's edge, owning its seam; content is padded only while an axis overflows; corner cell for both bars; focusable viewport with an inset ring. The thumb reveals while its axis scrolls and when the pointer is on the bar, widens and darkens there, inks while held, then fades (overlay platforms; always shown where native bars take space, in forced colours and for more contrast).",
  "dependencies": [
    "@base-ui/react@1.9.0",
    "class-variance-authority"
  ],
  "registryDependencies": [
    "@keyline-ui/keyline",
    "utils",
    "@keyline-ui/keyline-render",
    "@keyline-ui/keyline-scope"
  ],
  "files": [
    {
      "path": "src/registry/keyline/ui/scroll-area.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { ScrollArea as ScrollAreaPrimitive } from \"@base-ui/react/scroll-area\";\nimport { DirectionProvider } from \"@base-ui/react/direction-provider\";\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\nimport { dataAttrs, resolveClassName } from \"../lib/keyline-render\";\nimport { useDomDirection, useMergedRef } from \"../lib/keyline-scope\";\n\ntype ScrollbarVisibility = \"system\" | \"scroll\" | \"always\";\ntype ScrollAreaTrack = \"cell\" | \"rail\";\ntype ScrollAreaBarsAxis = \"vertical\" | \"horizontal\" | \"both\";\ntype Orientation = \"vertical\" | \"horizontal\";\n\n/* What the root decides and its bars draw: the track, which bars exist, and the resolved reveal mode. Passed through\n   context rather than read from the root's attributes, so a scroll area inside another one draws its own bars (an\n   ancestor's `track=\"rail\"` never reaches a nested region's bar). */\ntype ScrollAreaContextValue = { track: ScrollAreaTrack; reveal: \"scroll\" | \"always\"; scrollbars: ScrollAreaBarsAxis };\nconst ScrollAreaContext = React.createContext<ScrollAreaContextValue>({\n  track: \"cell\",\n  reveal: \"always\",\n  scrollbars: \"vertical\",\n});\nconst OrientationContext = React.createContext<Orientation>(\"vertical\");\n\n/* Whether the platform's own scrollbars take space (classic) or overlay content. The browser exposes the\n   user's choice only this way: an overflow:scroll box is narrower than its border box when bars are classic.\n   Measured once per page; a mouse plugged in later is picked up on the next load. */\nlet classicBars: boolean | undefined;\nfunction nativeBarsTakeSpace() {\n  if (classicBars === undefined) {\n    const probe = document.createElement(\"div\");\n    probe.style.cssText =\n      \"position:absolute;top:-200px;width:50px;height:50px;overflow:scroll;visibility:hidden;pointer-events:none\";\n    document.body.appendChild(probe);\n    classicBars = probe.offsetWidth - probe.clientWidth > 0;\n    probe.remove();\n  }\n  return classicBars;\n}\nconst noSubscribe = () => () => {};\n/** \"scroll\" (thumbs reveal and fade) or \"always\", resolved from the platform for \"system\". */\nfunction useScrollbarReveal(visibility: ScrollbarVisibility) {\n  const classic = React.useSyncExternalStore(noSubscribe, nativeBarsTakeSpace, () => false);\n  return visibility === \"system\" ? (classic ? \"always\" : \"scroll\") : visibility;\n}\n\n/*\n * The root: size it (height or max-height); the viewport fills it and scrolls natively. It is the outermost Keyline\n * element of a region that stands alone (kl-type), so its content takes Keyline's type and ink from it.\n * Reveal timing (after macOS overlay scrollbars): the thumb is there within a frame of the first scroll\n * (--kl-t-reveal), holds while the axis is still settling (Base UI keeps data-scrolling 500ms after the last scroll,\n * then --kl-reveal-hold), then fades (--kl-t-conceal): about 0.9s from the last input to the start of the fade, as\n * macOS does. Reduced motion makes reveal and fade immediate; the idle hold is timing, not motion.\n * Focus: the viewport is the focusable element (whenever it overflows). Its ring is drawn by the root, inside the\n * region and ABOVE the bars, so a bar never hides part of it.\n */\nconst root = cn(\n  \"kl-type relative isolate flex min-h-0 min-w-0 flex-col overflow-hidden\",\n  \"[--kl-reveal-hold:400ms] [--kl-sb:12px] [--kl-t-conceal:300ms] [--kl-t-grip:120ms] [--kl-t-reveal:90ms]\",\n  \"motion-reduce:[--kl-t-conceal:0ms] motion-reduce:[--kl-t-grip:0ms] motion-reduce:[--kl-t-reveal:0ms]\",\n  \"in-data-[kl-motion=reduce]:[--kl-t-conceal:0ms] in-data-[kl-motion=reduce]:[--kl-t-grip:0ms] in-data-[kl-motion=reduce]:[--kl-t-reveal:0ms]\",\n  \"data-[kl-motion=reduce]:[--kl-t-conceal:0ms] data-[kl-motion=reduce]:[--kl-t-grip:0ms] data-[kl-motion=reduce]:[--kl-t-reveal:0ms]\",\n  \"has-[>:focus-visible]:after:pointer-events-none has-[>:focus-visible]:after:absolute has-[>:focus-visible]:after:inset-0\",\n  \"has-[>:focus-visible]:after:z-2 has-[>:focus-visible]:after:content-['']\",\n  \"has-[>:focus-visible]:after:outline-(length:--kl-ring) has-[>:focus-visible]:after:outline-offset-(--kl-ring-in)\",\n  \"has-[>:focus-visible]:after:outline-kl-focus has-[>:focus-visible]:after:outline-solid\",\n  \"forced-colors:has-[>:focus-visible]:after:outline-[3px] forced-colors:has-[>:focus-visible]:after:-outline-offset-4\",\n  \"forced-colors:has-[>:focus-visible]:after:outline-[Highlight]\",\n);\n\n/* The viewport gives up the bar's width, but only while that axis overflows and has a bar, so the bar never covers\n   content. The room is on the viewport, not the content, so it adds to the content's own padding (a dialog body keeps\n   its inset beside the bar, and a focus ring in that inset is not hidden under the bar). */\nconst viewportVariants = cva(\"min-h-0 min-w-0 flex-[1_1_auto] outline-0 outline-none\", {\n  variants: {\n    scrollbars: {\n      vertical: \"data-has-overflow-y:pe-(--kl-sb)\",\n      horizontal: \"data-has-overflow-x:pb-(--kl-sb)\",\n      both: \"data-has-overflow-x:pb-(--kl-sb) data-has-overflow-y:pe-(--kl-sb)\",\n    },\n  },\n  defaultVariants: { scrollbars: \"vertical\" },\n});\n\n/*\n * A scrollbar is a cell on the region's edge: it owns the 1px seam to the content; the thumb is a solid block inset\n * 2px. The cell and its seam stay while the axis overflows, so nothing moves when the thumb reveals or fades.\n * The 2px inset at each END of the travel is a margin, not padding. Base UI takes the bar's box as the track and its\n * travel-axis padding as the thumb's inset, but a track press subtracts the padding of BOTH ends where the thumb only\n * sits after the start one (@base-ui/react 1.9.0, ScrollAreaScrollbar onPointerDown): with padding the thumb landed\n * 2px short of the pointer, and WebKit's whole-pixel clientY made that up to 3.05px depending on where the region sat\n * on the page. With a margin the bar's box is exactly the thumb's travel and every Base UI measurement is exact.\n * The cell still runs the full edge: ::after paints it (fill and seam) under the 2px end strips, and a press there\n * is the bar's own (the pseudo-element's hits are its), so it is still a track press.\n * track=\"rail\": a region that is not a frame has no edge for a cell to sit on. The bar keeps its width (content still\n * gives it room) but drops the fill and the seam: a 1px keyline rail runs its length and the thumb is a solid block\n * centred on it (across the bar only; along the bar Base UI positions it).\n */\nconst scrollbarVariants = cva(\n  \"group/scroll-area-scrollbar z-1 box-border flex forced-colors:border-[CanvasText] forced-colors:after:border-[CanvasText]\",\n  {\n    variants: {\n      track: {\n        cell: \"bg-kl-cell p-0.5 after:absolute after:-z-1 after:border-0 after:border-solid after:border-kl-seam after:bg-kl-cell after:content-['']\",\n        rail: cn(\n          \"items-start justify-center border-0 p-0\",\n          \"before:absolute before:-z-1 before:bg-kl-line-soft before:content-['']\",\n          \"forced-colors:before:bg-[GrayText] forced-colors:before:forced-color-adjust-none\",\n        ),\n      },\n      orientation: { vertical: \"w-(--kl-sb)\", horizontal: \"h-(--kl-sb) flex-col\" },\n    },\n    compoundVariants: [\n      {\n        track: \"cell\",\n        orientation: \"vertical\",\n        className: cn(\n          \"my-0.5 border-s-(length:--kl-k1) border-s-kl-seam py-0\",\n          \"after:-inset-y-0.5 after:start-[calc(-1*var(--kl-k1))] after:end-0 after:border-s-(length:--kl-k1)\",\n        ),\n      },\n      {\n        track: \"cell\",\n        orientation: \"horizontal\",\n        className: cn(\n          \"mx-0.5 border-t-(length:--kl-k1) border-t-kl-seam px-0\",\n          \"after:-inset-x-0.5 after:top-[calc(-1*var(--kl-k1))] after:bottom-0 after:border-t-(length:--kl-k1)\",\n        ),\n      },\n      {\n        track: \"rail\",\n        orientation: \"vertical\",\n        className: \"before:inset-y-0 before:start-[calc(50%-var(--kl-k1)/2)] before:w-(--kl-k1)\",\n      },\n      {\n        track: \"rail\",\n        orientation: \"horizontal\",\n        className: \"before:inset-x-0 before:top-[calc(50%-var(--kl-k1)/2)] before:h-(--kl-k1)\",\n      },\n    ],\n    defaultVariants: { track: \"cell\", orientation: \"vertical\" },\n  },\n);\n\n/*\n * The thumb. Tone says state: rest ink-3, pointer over the bar ink-2, held ink (all >= 3:1 against the cell in both\n * themes). A forgiving grip: ::after reaches 6px beyond either end of the thumb (a press there takes the thumb where\n * it is, no jump) and across the bar covers the cell's inset. Pseudo-element hits are the thumb's own.\n * REVEAL (reveal=\"scroll\"; \"always\" keeps the bar shown). Hidden, the thumb is transparent and slim (4 of its 7px in a\n * cell, half on a rail) but still hit-tested, so a press that lands on it a moment after it faded grabs it in place.\n * Shown while its axis scrolls (wheel, trackpad, touch, keys, a drag), while held, while the pointer is on the bar\n * (the cell is the activation zone: the region's own edge, so nearby links keep theirs) and while a jump the reader\n * asked for travels (data-kl-travel on the root, set by MessageScroller). Showing is near-immediate and never delayed;\n * a renewed reveal retargets from the current opacity. On the bar it widens to the cell; held, it stays wide.\n * More contrast and forced colours always show it, full width.\n */\nconst shown =\n  \"group-data-scrolling/scroll-area-scrollbar:opacity-100 group-data-scrolling/scroll-area-scrollbar:[transition-duration:var(--kl-t-reveal),var(--kl-t-grip),var(--kl-t-grip)] group-data-scrolling/scroll-area-scrollbar:[transition-delay:0s] \" +\n  \"group-active/scroll-area-scrollbar:opacity-100 group-active/scroll-area-scrollbar:[scale:1] group-active/scroll-area-scrollbar:[transition-duration:var(--kl-t-reveal),var(--kl-t-grip),var(--kl-t-grip)] group-active/scroll-area-scrollbar:[transition-delay:0s] \" +\n  \"group-hover/scroll-area-scrollbar:opacity-100 group-hover/scroll-area-scrollbar:[scale:1] group-hover/scroll-area-scrollbar:[transition-duration:var(--kl-t-reveal),var(--kl-t-grip),var(--kl-t-grip)] group-hover/scroll-area-scrollbar:[transition-delay:0s] \" +\n  \"contrast-more:opacity-100! contrast-more:[scale:none]! contrast-more:[transition:background-color_var(--kl-t-grip)_linear]\";\nconst thumbVariants = cva(\n  cn(\n    \"relative origin-center bg-kl-ink-3 after:absolute after:content-['']\",\n    \"[transition:opacity_var(--kl-t-conceal)_linear_var(--kl-reveal-hold),scale_var(--kl-t-grip)_var(--kl-ease-out),background-color_var(--kl-t-grip)_linear]\",\n    \"group-hover/scroll-area-scrollbar:bg-kl-ink-2 group-active/scroll-area-scrollbar:bg-kl-ink\",\n    \"forced-colors:[scale:none]! forced-colors:bg-[CanvasText]! forced-colors:opacity-100! forced-colors:transition-none\",\n    \"forced-colors:forced-color-adjust-none\",\n  ),\n  {\n    variants: {\n      track: { cell: \"flex-[1_1_auto]\", rail: \"flex-none\" },\n      orientation: { vertical: \"\", horizontal: \"\" },\n      reveal: { scroll: \"opacity-0\", always: \"\" },\n    },\n    compoundVariants: [\n      { track: \"cell\", orientation: \"vertical\", className: \"after:-inset-x-0.5 after:-inset-y-1.5\" },\n      { track: \"cell\", orientation: \"horizontal\", className: \"after:-inset-x-1.5 after:-inset-y-0.5\" },\n      { track: \"rail\", orientation: \"vertical\", className: \"w-1.5 after:-inset-x-[3px] after:-inset-y-1.5\" },\n      { track: \"rail\", orientation: \"horizontal\", className: \"h-1.5 after:-inset-x-1.5 after:-inset-y-[3px]\" },\n      { reveal: \"scroll\", className: shown },\n      { reveal: \"scroll\", track: \"cell\", orientation: \"vertical\", className: \"[scale:calc(4/7)_1]\" },\n      { reveal: \"scroll\", track: \"cell\", orientation: \"horizontal\", className: \"[scale:1_calc(4/7)]\" },\n      { reveal: \"scroll\", track: \"rail\", orientation: \"vertical\", className: \"[scale:0.5_1]\" },\n      { reveal: \"scroll\", track: \"rail\", orientation: \"horizontal\", className: \"[scale:1_0.5]\" },\n      {\n        reveal: \"scroll\",\n        orientation: \"vertical\",\n        className:\n          \"[[data-kl-travel]>[data-orientation=vertical]>&]:opacity-100 [[data-kl-travel]>[data-orientation=vertical]>&]:[transition-delay:0s] [[data-kl-travel]>[data-orientation=vertical]>&]:[transition-duration:var(--kl-t-reveal),var(--kl-t-grip),var(--kl-t-grip)]\",\n      },\n    ],\n    defaultVariants: { track: \"cell\", orientation: \"vertical\", reveal: \"always\" },\n  },\n);\n\n/* both bars: the corner cell closes the L-junction of their two seams; on a rail there is no junction to close */\nconst cornerVariants = cva(\"z-1 box-border forced-colors:border-[CanvasText]\", {\n  variants: {\n    track: {\n      cell: \"border-s-(length:--kl-k1) border-t-(length:--kl-k1) border-kl-seam bg-kl-cell\",\n      rail: \"border-0 bg-transparent\",\n    },\n  },\n  defaultVariants: { track: \"cell\" },\n});\n\ntype ScrollAreaRootProps = ScrollAreaPrimitive.Root.Props & {\n  /** Which scrollbars the region has (ScrollAreaScrollbar parts to render). Default: vertical. */\n  scrollbars?: ScrollAreaBarsAxis;\n  /**\n   * How a bar meets the region (declared, never inferred from ancestors).\n   * cell (default): the region is a frame or sits inside one; each bar is a cell on its edge with a 1px seam.\n   * rail: the region is not a frame (a page or a pane on the page background); a bar has no cell to belong\n   * to, so it is a 1px keyline rail with the solid thumb centred on it.\n   */\n  track?: ScrollAreaTrack;\n  /**\n   * When a thumb shows (the bar's cell and seam are always there while its axis overflows).\n   * system (default): follow the platform. Where native scrollbars overlay content (macOS \"Automatically\",\n   * iOS, Android), the thumb shows while that axis scrolls, while the pointer is over the bar, and while\n   * it is held, then fades. Where native scrollbars take space (macOS \"Always\", Windows, a mouse on\n   * \"Automatically\"), it always shows.\n   * scroll: always behave like an overlay platform. always: always show.\n   * Forced colours and a request for more contrast always show it.\n   */\n  scrollbarVisibility?: ScrollbarVisibility;\n};\n\n/* A component built on the scroll area (Dialog's body, Table's scroller, MessageScroller) names the element it renders\n   with its own `data-slot`; anywhere else the part's slot names it. */\nconst slotOf = (props: object, slot: string) => (props as { \"data-slot\"?: string })[\"data-slot\"] ?? slot;\n\n/** The root (Base UI ScrollArea.Root): direction, construction attributes and the resolved reveal mode. */\nfunction ScrollAreaRoot({\n  className,\n  scrollbars = \"vertical\",\n  track = \"cell\",\n  scrollbarVisibility = \"system\",\n  ref: outerRef,\n  ...props\n}: ScrollAreaRootProps): React.ReactElement {\n  const ref = React.useRef<HTMLDivElement>(null);\n  const setRef = useMergedRef(ref, outerRef);\n  const [dir] = useDomDirection(ref);\n  const reveal = useScrollbarReveal(scrollbarVisibility);\n  const context = React.useMemo(() => ({ track, reveal, scrollbars }), [track, reveal, scrollbars]);\n  return (\n    <ScrollAreaContext.Provider value={context}>\n      <DirectionProvider direction={dir}>\n        <ScrollAreaPrimitive.Root\n          ref={setRef}\n          {...dataAttrs({ \"kl-bars\": scrollbars, \"kl-track\": track, \"kl-reveal\": reveal })}\n          className={resolveClassName(root, className)}\n          {...props}\n          data-slot={slotOf(props, \"scroll-area\")}\n        />\n      </DirectionProvider>\n    </ScrollAreaContext.Provider>\n  );\n}\n\n/** The viewport (Base UI ScrollArea.Viewport): the native scroller, focusable while it overflows. */\nfunction ScrollAreaViewport({ className, ...props }: ScrollAreaPrimitive.Viewport.Props): React.ReactElement {\n  const { scrollbars } = React.useContext(ScrollAreaContext);\n  return (\n    <ScrollAreaPrimitive.Viewport\n      className={resolveClassName(cn(viewportVariants({ scrollbars })), className)}\n      {...props}\n      data-slot={slotOf(props, \"scroll-area-viewport\")}\n    />\n  );\n}\n\n/** The content (Base UI ScrollArea.Content): what scrolls. Lay it out with `className`. */\nfunction ScrollAreaContent({ className, ...props }: ScrollAreaPrimitive.Content.Props): React.ReactElement {\n  return (\n    <ScrollAreaPrimitive.Content\n      className={resolveClassName(\"\", className)}\n      {...props}\n      data-slot=\"scroll-area-content\"\n    />\n  );\n}\n\n/** A scrollbar (Base UI ScrollArea.Scrollbar): a cell on the region's edge, or a rail. Renders only while its axis\n *  overflows. */\nfunction ScrollAreaScrollbar({\n  className,\n  orientation = \"vertical\",\n  ...props\n}: ScrollAreaPrimitive.Scrollbar.Props): React.ReactElement {\n  const { track } = React.useContext(ScrollAreaContext);\n  return (\n    <OrientationContext.Provider value={orientation}>\n      <ScrollAreaPrimitive.Scrollbar\n        orientation={orientation}\n        {...dataAttrs({ \"kl-track\": track })}\n        className={resolveClassName(cn(scrollbarVariants({ track, orientation })), className)}\n        {...props}\n        data-slot=\"scroll-area-scrollbar\"\n      />\n    </OrientationContext.Provider>\n  );\n}\n\n/** The thumb (Base UI ScrollArea.Thumb). */\nfunction ScrollAreaThumb({ className, ...props }: ScrollAreaPrimitive.Thumb.Props): React.ReactElement {\n  const { track, reveal } = React.useContext(ScrollAreaContext);\n  const orientation = React.useContext(OrientationContext);\n  return (\n    <ScrollAreaPrimitive.Thumb\n      {...dataAttrs({ \"kl-track\": track, \"kl-reveal\": reveal })}\n      className={resolveClassName(cn(thumbVariants({ track, orientation, reveal })), className)}\n      {...props}\n      data-slot=\"scroll-area-thumb\"\n    />\n  );\n}\n\n/** The corner (Base UI ScrollArea.Corner), where two bars meet. */\nfunction ScrollAreaCorner({ className, ...props }: ScrollAreaPrimitive.Corner.Props): React.ReactElement {\n  const { track } = React.useContext(ScrollAreaContext);\n  return (\n    <ScrollAreaPrimitive.Corner\n      className={resolveClassName(cn(cornerVariants({ track })), className)}\n      {...props}\n      data-slot=\"scroll-area-corner\"\n    />\n  );\n}\n\n/** The bars, thumbs and corner of a scroll area, as its root's `scrollbars` asks. Shared by ScrollArea and\n *  MessageScroller. */\nfunction ScrollAreaBars({ scrollbars: axes }: { scrollbars?: ScrollAreaBarsAxis }): React.ReactElement {\n  const fromRoot = React.useContext(ScrollAreaContext).scrollbars;\n  const scrollbars = axes ?? fromRoot;\n  const v = scrollbars !== \"horizontal\";\n  const h = scrollbars !== \"vertical\";\n  return (\n    <>\n      {v ? (\n        <ScrollAreaScrollbar orientation=\"vertical\">\n          <ScrollAreaThumb />\n        </ScrollAreaScrollbar>\n      ) : null}\n      {h ? (\n        <ScrollAreaScrollbar orientation=\"horizontal\">\n          <ScrollAreaThumb />\n        </ScrollAreaScrollbar>\n      ) : null}\n      {v && h ? <ScrollAreaCorner /> : null}\n    </>\n  );\n}\n\ntype ScrollAreaProps = Omit<ScrollAreaRootProps, \"children\"> & {\n  children?: React.ReactNode;\n  /**\n   * Names the scrollable region. The viewport is focusable whenever it overflows (Base UI), so keyboard\n   * users can scroll content that has no focusable children; a name tells them what they are in.\n   * Give it when the region is not already labelled by its surroundings.\n   */\n  label?: string;\n  viewportClassName?: string;\n  contentClassName?: string;\n};\n\n/**\n * A native scroll container with Keyline scrollbars (Base UI Scroll Area), built from the parts above. Scrolling\n * itself is the browser's: wheel, trackpad, touch momentum, keyboard and find-in-page all behave natively; Base UI\n * hides the native bar and drives the thumb from the real scroll position.\n *\n * Construction: a scrollbar is a cell on the region's inline-end (or block-end) edge. It owns the 1px\n * seam that divides it from the content; its thumb is a solid block inset 2px. Content is padded by\n * the bar's width only while that axis overflows, so the bar never covers text. With both bars, the\n * corner cell closes the L-junction. Bars render only while their axis overflows.\n *\n * Behaviour (after macOS overlay scrollbars): the cell stays, the thumb reveals inside it.\n * Scrolling an axis shows its thumb slim at once; the pointer on the bar widens it to the cell and darkens\n * it; holding it inks it. A short idle after the last of these, it fades; new input brings it back from\n * wherever the fade is. Pressing the track lands the thumb under the pointer and keeps dragging.\n */\nfunction ScrollArea({\n  children,\n  scrollbars = \"vertical\",\n  label,\n  viewportClassName,\n  contentClassName,\n  ...props\n}: ScrollAreaProps): React.ReactElement {\n  return (\n    <ScrollAreaRoot scrollbars={scrollbars} {...props}>\n      <ScrollAreaViewport className={viewportClassName} role={label ? \"region\" : undefined} aria-label={label}>\n        <ScrollAreaContent className={contentClassName}>{children}</ScrollAreaContent>\n      </ScrollAreaViewport>\n      <ScrollAreaBars />\n    </ScrollAreaRoot>\n  );\n}\n\nexport {\n  ScrollArea,\n  ScrollAreaRoot,\n  ScrollAreaViewport,\n  ScrollAreaContent,\n  ScrollAreaScrollbar,\n  ScrollAreaThumb,\n  ScrollAreaCorner,\n  ScrollAreaBars,\n  type ScrollAreaProps,\n  type ScrollAreaRootProps,\n  type ScrollbarVisibility,\n};\n",
      "type": "registry:ui",
      "target": "components/keyline/ui/scroll-area.tsx"
    }
  ],
  "docs": "Size the root (height or max-height) with your own class: <ScrollArea className=\"h-64\" label=\"Activity\">…</ScrollArea>. scrollbars=\"vertical\" (default), \"horizontal\" or \"both\". Scrolling stays native (wheel, trackpad, touch, keyboard). Give label when nothing else names the region; the viewport is focusable while it overflows. Do not wrap Select or Multiselect lists in it: they keep their own native scroller, styled to match.",
  "type": "registry:ui"
}