Is it possible to add a "cmd + K" icon to the search bar? #1006
Answered
by
dhayab
JoeVanGundy
asked this question in
Q&A
|
I'm using Autocomplete as a command palette. Is this possible without using autocomplete-core? Thanks for any help!! |
Answered by
dhayab
Jul 27, 2022
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. |
1 reply
Answer selected by
JoeVanGundy
|
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 🙏 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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.