Autocomplete input label

Hi all, I am trying to develop a datasource backend plugin for grafana, I have already followed the tutorial on the site, what I am trying to do is create a form to insert values for query the datasource that has an autocomplete insert from a list of possible options (such as Prometheus auto-completion of metrics). How can I implement this autocomplete function?

The built-in data sources use the QueryField component to offer auto-complete. I’d start by checking that out.