Select from a dropdown with autocomplete or add new item

Hello,

I’m looking to have a select menu with autocomplete (from ajax) where if there is no option returned based on what the user is typing, he can add what he wrote (see "Create “magenta” on the picture below).

It’s a feature from this react component :

There is screenshots here :

Is it possible to do this with Select2 ?

Thank you