Skip to content

peterbe/primer-autocomplete

Repository files navigation

primer-autocomplete

Using the @primer/react component to build a typeahead search feature.

To run

You'll need to start two terminals

One:

npm run mock-server

Two:

npm run dev

Now, you can open http://localhost:3000

Kusto

Kusto query used to generated the popular-queries.csv downloaded CSV export:

  database('hydro').table('analytics_v0_browser_event')
  | where timestamp > ago(30d)
  | where app == 'thehub'
  | where event == 'search_result'
  | where context['search_result_total'] > 0
  | summarize count() by tostring(context['search_result_query'])
  | order by count_ desc
  | take 1000

Mock server

You have to start a server on localhost:8000. You need to have Bun installed. Run:

npm run mock-server

About

A standalone implementation of @primer/react Autocomplete to build a typehead search feature

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published