Is there a Select2-like library?

I want to implement a multiple-select field where the user can search and can pick the item in the list with conditions (for example, if I choose item A, the rest of the items will be reset).

Something like Basic usage - Select2

Thanks in advance! <3