Here is how we are using it at Sourcegraph: loading-indicator.ts - sourcegraph/sourcegraph - Sourcegraph . It renders a little spinner at the end of the query input. You can actually try it out in the query input itself on that page, e.g. enter a new query, for example repo:react and if the suggestions take a while to load the spinner will appear.