How to populate ShadCN search/comand component with options, but only have them show up when typing?

I want to use the ShadCN command/search component, but I only want about 3 or 4 of the options to show as deafult, the rest should be there, but only upon searching (with the correct letters)
3 Replies
arete
arete3y ago
do you have a solution to this?
Steven-sensei
Steven-sensei3y ago
I did somthing like this not so long ago, my idea was to keep track of the search and conditionaly render the option in the jsx
JacobMGEvans
JacobMGEvans3y ago
This is not a "deep question" please use appropriate tags next time.

Did you find this page helpful?