What library do you use to create custom select wiht Gatsby

In my project, I need to make this custom field.


The senior developer advised me to use the select2 library. But I’m not sure if this is the best option. What library or package would you use?
Project use Gatby and Wordpress.