Hello @Thomas_Vaudry-Read ,
Welcome to Elastic Discuss forum!
There is not much documentation indeed, but you can find some here and here.
The best way to learn how to use embeddable is to run Kibana with
yarn start --run-examples
Then in the left sidebar there will be a section with example plugins available and you can edit the
embeddable_explorer plugin to learn how to work with embeddables.
Going back specifically to your question, you can render in your app embeddables which are registered using
registerEmbeddableFactory method. The whole Discover app is not an embeddable, unfortunately.
But Discover plugin registers an embeddable widget which can display Discover search results (
SearchEmbeddable), here. In your app you can render that search embeddable.
To render the
search embeddable which Discover app registers, you will need to get the embeddable factory.
const factory = plugins.embeddable.getEmbeddableFactory('search');
And then use that factory to render the embeddable:
const embeddable = factory.create(/* ... */);