If you have an internal package registry, distributing a component library as you described is a good strategy.
Alternatively, you can also have them access the Git repository directly, either as a Git submodule or by using the Git repo as the package source. The latter is straightforward with npm or pip (I'm sure other package managers have a similar feature) and has the advantage over Git submodules that it behaves like a "regular" dependency when it comes to versioning.
Depending on your infrastructure and org requirements, it can also make sense to keep all infrastructure projects and internal components in a monorepo that's used by all teams.