Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit number of displayed options #205

Open
BrendanC23 opened this issue Jan 19, 2024 · 3 comments
Open

Limit number of displayed options #205

BrendanC23 opened this issue Jan 19, 2024 · 3 comments

Comments

@BrendanC23
Copy link

I have a combobox with several thousand items. Is there a straightforward way to only show the first N matches without needing to manually handle the filtering and displaying of the CommandItem elements?

@teebu
Copy link

teebu commented Jan 21, 2024

i'd like to know too, seems that slicing the output removes them from further filtering.

@pacocoursey
Copy link
Owner

Currently, no. I'd like to add support for virtualization though, which is what you are wanting.

@matthiasfeist
Copy link

Does anyone know of a working demo how to combine CMDK with something like react-window for virtualisation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants