To stop sharing styles and components from a component library, you need to unpublish the library. Unpublishing means that team members will not be able to access the library or receive updates to its styles and components.
Open the file you want to unpublish. Ensure you select the library file where the main components and styles are located.
Click the Asset panel and click to open Local library or use the shortcut keys:
Click on the local component library.
Click Unpublish at the right of the library title.
Note: Team members can still use components from the unpublished libraries, but instances will not receive updates from the main component.