# Can I display search box and search results in separate React components

**URL:** <https://discuss.elastic.co/t/can-i-display-search-box-and-search-results-in-separate-react-components/314364>\
**Category:** Elasticsearch\
**Created:** [September 14, 2022, 5:04am UTC](https://discuss.elastic.co/t/can-i-display-search-box-and-search-results-in-separate-react-components/314364 "2022-09-14T05:04:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheng111](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheng111/32/116835_2.png) [@Sheng111](https://discuss.elastic.co/u/Sheng111)\
**Post date:** [September 14, 2022, 5:04am UTC](https://discuss.elastic.co/t/can-i-display-search-box-and-search-results-in-separate-react-components/314364/1 "2022-09-14T05:04:32Z")

</div>

I am thinking to create a search box with Elastic search UI library, my requirements are display search box in header of all the website, but search results will display in a different React components as a part of the page, or even in a pop-up window, is this doable? Any samples I can learn? Thanks!

Sheng

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 12, 2022, 5:05am UTC](https://discuss.elastic.co/t/can-i-display-search-box-and-search-results-in-separate-react-components/314364/2 "2022-10-12T05:05:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
