reshaped icon indicating copy to clipboard operation
reshaped copied to clipboard

Autocomplete API Enhancements

Open its-monotype opened this issue 1 year ago • 2 comments

In our Electron-based desktop app, I need to implement an autocomplete picker menu that opens when the user presses a button inside a small floating window. Since the window is too small to fit the menu, it should open in a separate window next to the trigger. That's why I want the menu to be open by default, not positioned absolutely. It should either fill the available space or allow for custom size limits.

Additionally, in another part of the app where space is limited, I’m considering a similar approach with a button as a trigger showing the total number of selected items (since multiple selection is required here), clicking the button would open a popup with an autocomplete input and a list of items. I believe this approach would save space compared to using an input field with tags. However, I’m open to other solutions that might be better suited for this scenario.

I'm unsure if Reshaped should support this functionality, or if I should explore using the headless cmdk library (you can see an ex. of how it can be used here) or other custom solutions.

its-monotype avatar Sep 21 '24 20:09 its-monotype