Search Bar
Search Bar
A long box with a magnifying glass icon where you type what you're looking for.
💡 It's like the help desk at a library where you ask, 'Where can I find this book?'
🤖 Say this to your AI
Add a Search Bar to the header. When the user types, show suggested searches below it after 0.3 seconds (autocomplete), and pressing Enter should go to the search results page.
The key word is ‘Search Bar’. Including it helps AI understand you much more precisely.
📌 Good to know
Searching on every single keystroke puts strain on the server. Waiting until the user pauses for a moment before searching is called 'Debounce'.
When to use it
- When you have lots of products or posts and people need a way to find things
Also called: search, search box, find, magnifying glass, autocomplete, debounce, search field