import React from "react"; import { withStyle } from "baseui"; import { StatefulMenu, OptionList, StyledList } from "baseui/menu"; import { List, AutoSizer } from "react-virtualized"; const ITEMS = Array.from({ length: 1500 }, (_, index) => ({ label: `item number: ${index + 1}`, })); const Container = withStyle(StyledList, { height: "500px" }); const VirtualList = React.forwardRef((props: any, ref) => { const children = React.Children.toArray(props.children); return ( {({ width }) => ( ( )} width={width} /> )} ); }); export default function Example() { return ( ); }