diff --git a/src/components/lab/Virtualizer/Virtualizer.tsx b/src/components/lab/Virtualizer/Virtualizer.tsx index 2619b1c37..886a3925d 100644 --- a/src/components/lab/Virtualizer/Virtualizer.tsx +++ b/src/components/lab/Virtualizer/Virtualizer.tsx @@ -27,7 +27,7 @@ export interface VirtualizerApi { scrollRect: Rect | null; } -interface VirtualizerProps extends Loadable { +interface VirtualizerProps extends Loadable, React.HTMLAttributes { /** The ref of the virtualizer api. */ apiRef?: React.Ref; /** The ref of the scroll container element. */ @@ -70,6 +70,7 @@ export function Virtualizer({ loading, onLoadMore, persistedIndexes, + ...props }: VirtualizerProps) { const scrollContainerRef = React.useRef(null); const ref = useForkRef(containerRef, scrollContainerRef); @@ -110,12 +111,12 @@ export function Virtualizer({ return (
{renderRows({