Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My favorite autocomplete library is an ancient version of bootstrap-typeahead.js by Twitter. A single file with less than 400 lines of Javascript. They don't make these anymore :)

I use it everywhere where I need autcompletion. For example on the Music-Map:

https://www.music-map.com

I made a fork of the code which is available here:

https://www.gibney.org/0g-typeahead



Getting accessibility right is hard. We very much care about that. One of the strong reasons for why we're using Downshift.


I did my first autocomplete search UI with that library.

These days, due to the rest of the project, I've been using Angular and Material's Autocomplete component, which I've found very easy to customise for in-memory indexes or hits to a remote ElasticSearch 'suggester' proxy endpoint.


It seems to be missing the most obvious feature: keyboard navigation. My guess is that accessibility is not well implemented either. Probably why other dropdown implementations are bigger code-size wise.


It has keyboard navigation. It is just not enabled on the Music-Map.

Gnoosic uses the same library, and here you can navigate with the cursor keys:

https://www.gnoosic.com/faves




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: