Reattached component to a new design library

We are using one design system to apply to different brands.
Does anyone know is there a quick way or plug in can help to reattached the component to the new library?