VirtualContentRender: ((props: VirtualContentProps, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element)

Render prop for content container in VirtualScroll

Pass to VirtualScroll to render content into the viewport implementation. Function must render a div and forward VirtualContentProps and any ref to it.

const contentRender: VirtualContentRender = ({isScrolling, ...rest}, ref) => (
<div ref={ref} {...rest} />
)