I am using react-select library to implement search and select functionality in my project.
As a basic usage, I can only select the options returned after the search. It looks like this whose code is:
<AsyncSelect
onChange={(item) => _selectedItemChange(item)}
loadOptions={loadItemOptions}
placeholder='Start typing'
/>
Now, I want a button at the lower end of the select box so that I can do like 'Not found? Add New' type of stuff. Something like this. I also want that button's onClick function to be my own.
How can I do this?