pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.42k stars 265 forks source link

Support Grid View #60

Open peduarte opened 1 year ago

peduarte commented 1 year ago

Would love to use this library while rendering items in a Grid and being able to use left/right/up/down keyboard arrow to navigate across Grid Items. I appreciate the Grid view is not the most common presentation for Command K, but I see now reason why it shouldn't be! Having this as an option could open up lots of cool and more rich UIs.

Raycast for example is a very similar UI and supports Grid: CleanShot 2022-10-29 at 09 06 53@2x

Kilian commented 1 year ago

Complexity here would be that the left and right arrows are used to navigate the text in the input, and you'd probably want a modal situation where you apply whatever the input is and then get into this view.

kusaljr commented 9 months ago

any way this can be achieved?

AimanHakeem commented 6 months ago

I tried to add button or image inside command item also it will cause rendering issue, any way to achieve that?

pacocoursey commented 6 months ago

This would be great. Tracking in #210.

momongah commented 3 months ago

+1 hopefully this gets merged in soon.