Embedding portion of the app / sharing components with another app

Just curious if anyone has done this—I think that perhaps I know how to do this but it would save me some headache to validate this.

We have an app. It has a page and several of that page’s components that we’d like to be able to embed into another site (similar to what the Ionic docs site does).

Seems like the way to do this would be to:

  1. Extract (or at least figure out a way to package) the components we want into a web component.
  2. Import that component to where we want it.

Does that sound right?