There is an example app for search here
It shows how to build an app with KQL search which uses data plugin to run searches.
A sample navbar usage is here
to run Kibana with examples plugins: yarn start --run-examples
and you will see a Developer examples
section in Kibana's navigation