Using discover plugin in kibana custom plugin

Hi

You can follow through this document External plugin development | Kibana Guide [8.11] | Elastic and come back here for more help.

Some discuss posts on this topic: Kibana plugin development resources - #3 by Ahmad_Abulhouf
Thanks
Rashmi