Is it possible to add a "cmd + K" icon to the search bar? #1006
-
I'm using Autocomplete as a command palette. Is this possible without using autocomplete-core? Thanks for any help!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @JoeVanGundy , there is no built-in method that adds this. You can achieve a similar effect (with some caveats) by adding a few lines of CSS and JavaScript. Here is an example: https://codesandbox.io/s/goofy-aryabhata-c7llse?file=/app.js. |
Beta Was this translation helpful? Give feedback.
-
Landed here while searching for an answer for the same question! But the codesandbox seems to be not working now. Could you please give the high level steps here @dhayab? Thanks 🙏 |
Beta Was this translation helpful? Give feedback.
Hi @JoeVanGundy , there is no built-in method that adds this. You can achieve a similar effect (with some caveats) by adding a few lines of CSS and JavaScript. Here is an example: https://codesandbox.io/s/goofy-aryabhata-c7llse?file=/app.js.