mirror of
https://github.com/siteboon/claudecodeui.git
synced 2025-12-11 07:19:38 +00:00
23 lines
524 B
JavaScript
23 lines
524 B
JavaScript
import * as React from "react"
|
|
import { cn } from "../../lib/utils"
|
|
|
|
const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
<div
|
|
ref={ref}
|
|
className={cn("relative overflow-hidden", className)}
|
|
{...props}
|
|
>
|
|
<div
|
|
className="h-full w-full rounded-[inherit] overflow-auto"
|
|
style={{
|
|
WebkitOverflowScrolling: 'touch',
|
|
touchAction: 'pan-y'
|
|
}}
|
|
>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
))
|
|
ScrollArea.displayName = "ScrollArea"
|
|
|
|
export { ScrollArea } |