dip/cmdk ? reverse-engineered prompt

Reverse engineered prompt

Build me a fast, unstyled command menu for React that works like the one you get when you press ⌘K in apps.

I want it to let me type to search, filter, and sort items automatically, and I should be able to use it as either an inline menu or inside a modal dialog. It should also work well as an accessible combobox, support grouped items, separators, an empty state, loading state, and keyboard navigation, including wrapping around the list if I want that.

Please make the API feel simple and composable, so I can use plain JSX, wrap items in my own components, and still have filtering and selection work. Each part should forward props and refs properly, and I should be able to style everything with data attributes.

If it helps, look up current docs for the dialog and accessibility bits online. Also include a small demo page or example setup so I can see how it behaves in real use.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab