microsoft / fluent-ui-react

An ecosystem for building highly customizable enterprise class user interfaces.
https://aka.ms/fluent-ui
MIT License
434 stars 55 forks source link

Support virtualization for Menu #2155

Open elgasano opened 4 years ago

elgasano commented 4 years ago

Feature Request

For menu with large number of items, there will be good to support virtualization similar to that react list virtualizied provided

Problem description

Large menu collection will bring a considerable latency, therefore support for virtualization is essential

Proposed solution

Potentially react virtualized list can be used beneath menu list

MVP

[Fork, update, and replace this sandbox if you can show the proposed solution]: https://codesandbox.io/s/stardust-ui-example-8ismt

jurokapsiar commented 4 years ago

Virtualization is possible with react-virtualized even now, see https://codesandbox.io/s/fluent-ui-example-bx012

Even though this has some accessibility limitations, I think you can follow the codesandbox for now. Couple of points to be careful about: