shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
75.76k stars 4.76k forks source link

[feat]: Combobox virtualization #2922

Closed Filip1139 closed 5 months ago

Filip1139 commented 9 months ago

Feature description

I needed to make a Combobox with a large number of items.

Do you have any idea how to achieve this feature? If I have more than 100 items in array combobox crushes

Affected component/components

Combobox

Additional Context

Additional details here...

Before submitting

GregorGabric commented 8 months ago

Using something like this might help with your issue

Tanstack Virtual

step2341 commented 8 months ago

its also pretty simple just to create a reusable intersection observer hook and use that to virtualize the command group

shadcn commented 5 months ago

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.