Creating a vue plugin using react js

hello all vue developers
i am a react js developer but i need some the help of all you vue js developers
→ i need to create a chat widget which could work on both vue and react , i did some research and came across vue plugin system ,
i wanted to ask whether i could create a vue plugin in react js or not , if yes could anyone share some examples
any help would be appreciated