How to involve KQL search bar in Kibana Plugin

Are there any ways I can have this KQL search bar in my own plugin? By default, the plugin only contains the time filter on the right.

you can use, take a look at how discover, dashboard or visualize app do it.

Is SearchBar included in TopNavMenu? I searched SearchBar in Discover and Dashboard apps and couldn't find it. But I found this:, which looked like something related to SearchBar. Could you help me check this?