MCPcopy Index your code
hub / github.com/adobe/react-spectrum / ScrollView

Function ScrollView

packages/react-aria/src/virtualizer/ScrollView.tsx:48–57  ·  view source on GitHub ↗
(props: ScrollViewProps, ref: ForwardedRef<HTMLDivElement | null>)

Source from the content-addressed store, hash-verified

46}
47
48function ScrollView(props: ScrollViewProps, ref: ForwardedRef<HTMLDivElement | null>) {
49 ref = useObjectRef(ref);
50 let {scrollViewProps, contentProps} = useScrollView(props, ref);
51
52 return (
53 <div role="presentation" {...scrollViewProps} ref={ref}>
54 <div {...contentProps}>{props.children}</div>
55 </div>
56 );
57}
58
59const ScrollViewForwardRef: React.ForwardRefExoticComponent<
60 ScrollViewProps & React.RefAttributes<HTMLDivElement | null>

Callers

nothing calls this directly

Calls 2

useObjectRefFunction · 0.90
useScrollViewFunction · 0.85

Tested by

no test coverage detected